| 108 | } |
| 109 | |
| 110 | inline int getFileExtension(char *filename, char **extension) { |
| 111 | int string_length = static_cast<int>(strlen(filename)); |
| 112 | |
| 113 | while (filename[string_length--] != '.') { |
| 114 | if (string_length == 0) break; |
| 115 | } |
| 116 | |
| 117 | if (string_length > 0) string_length += 2; |
| 118 | |
| 119 | if (string_length == 0) |
| 120 | *extension = NULL; |
| 121 | else |
| 122 | *extension = &filename[string_length]; |
| 123 | |
| 124 | return string_length; |
| 125 | } |
| 126 | |
| 127 | inline bool checkCmdLineFlag(const int argc, const char **argv, |
| 128 | const char *string_ref) { |
nothing calls this directly
no outgoing calls
no test coverage detected