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

Function char_to_digit_value

test-app/runtime/src/main/cpp/ada/ada.cpp:7999–8003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7997constexpr uint32_t initial_n = 128;
7998
7999static constexpr int32_t char_to_digit_value(char value) {
8000 if (value >= 'a' && value <= 'z') return value - 'a';
8001 if (value >= '0' && value <= '9') return value - '0' + 26;
8002 return -1;
8003}
8004
8005static constexpr char digit_to_char(int32_t digit) {
8006 return digit < 26 ? char(digit + 97) : char(digit + 22);

Callers 2

punycode_to_utf32Function · 0.85
verify_punycodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected