MCPcopy Create free account
hub / github.com/NativeScript/android / is_windows_drive_letter

Function is_windows_drive_letter

test-app/runtime/src/main/cpp/ada/ada.h:1040–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040constexpr bool is_windows_drive_letter(std::string_view input) noexcept {
1041 return input.size() >= 2 &&
1042 (is_alpha(input[0]) && ((input[1] == ':') || (input[1] == '|'))) &&
1043 ((input.size() == 2) || (input[2] == '/' || input[2] == '\\' ||
1044 input[2] == '?' || input[2] == '#'));
1045}
1046
1047constexpr bool is_normalized_windows_drive_letter(
1048 std::string_view input) noexcept {

Callers 3

parse_prepared_pathFunction · 0.85
parse_url_implFunction · 0.85
consume_prepared_pathMethod · 0.85

Calls 2

is_alphaFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected