MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getFileNameWithoutExtension

Method getFileNameWithoutExtension

JUCE/modules/juce_core/files/juce_File.cpp:371–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371String File::getFileNameWithoutExtension() const
372{
373 auto lastSlash = fullPath.lastIndexOfChar (getSeparatorChar()) + 1;
374 auto lastDot = fullPath.lastIndexOfChar ('.');
375
376 if (lastDot > lastSlash)
377 return fullPath.substring (lastSlash, lastDot);
378
379 return fullPath.substring (lastSlash);
380}
381
382bool File::isAChildOf (const File& potentialParent) const
383{

Callers 15

getDefaultMethodTreeMethod · 0.45
addMethodFromFileMethod · 0.45
addResourceFromFileMethod · 0.45
importImageMethod · 0.45
resourceExistsMethod · 0.45
addResourceMethod · 0.45
CtrlrPanelResourceMethod · 0.45
writeLuaMethodMethod · 0.45
VST3HostContextFunction · 0.45
getDLLFileFromBundleFunction · 0.45
openMethod · 0.45
LADSPAPluginInstanceFunction · 0.45

Calls 2

lastIndexOfCharMethod · 0.80
substringMethod · 0.45

Tested by

no test coverage detected