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

Function countNumberOfSeparators

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

==============================================================================

Source from the content-addressed store, hash-verified

861
862//==============================================================================
863static int countNumberOfSeparators (String::CharPointerType s)
864{
865 int num = 0;
866
867 for (;;)
868 {
869 auto c = s.getAndAdvance();
870
871 if (c == 0)
872 break;
873
874 if (c == File::getSeparatorChar())
875 ++num;
876 }
877
878 return num;
879}
880
881String File::getRelativePathFrom (const File& dir) const
882{

Callers 1

getRelativePathFromMethod · 0.85

Calls 1

getAndAdvanceMethod · 0.45

Tested by

no test coverage detected