==============================================================================
| 861 | |
| 862 | //============================================================================== |
| 863 | static 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 | |
| 881 | String File::getRelativePathFrom (const File& dir) const |
| 882 | { |
no test coverage detected