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

Method set_username

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

Source from the content-addressed store, hash-verified

12797}
12798
12799bool url::set_username(const std::string_view input) {
12800 if (cannot_have_credentials_or_port()) {
12801 return false;
12802 }
12803 username = ada::unicode::percent_encode(
12804 input, character_sets::USERINFO_PERCENT_ENCODE);
12805 return true;
12806}
12807
12808bool url::set_password(const std::string_view input) {
12809 if (cannot_have_credentials_or_port()) {

Callers 3

SetUserNameMethod · 0.80
canonicalize_usernameFunction · 0.80
ada_set_usernameFunction · 0.80

Calls 4

percent_encodeFunction · 0.85
overlapsFunction · 0.85
percent_encode_indexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected