MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / changeExtension

Function changeExtension

src/yvalve/PluginManager.cpp:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60namespace
61{
62 void changeExtension(PathName& file, const char* newExt)
63 {
64 PathName::size_type p = file.rfind(PathUtils::dir_sep);
65 if (p == PathName::npos)
66 {
67 p = 0;
68 }
69 p = file.find('.', p);
70 if (p == PathName::npos)
71 {
72 file += '.';
73 }
74 else
75 {
76 file.erase(p + 1);
77 }
78
79 file += newExt;
80 }
81
82 // Holds a reference to plugins.conf file
83 class StaticConfHolder

Callers 2

PluginLoadInfoMethod · 0.85
registerPluginFactoryMethod · 0.85

Calls 3

rfindMethod · 0.45
findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected