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

Method set_password

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

Source from the content-addressed store, hash-verified

12806}
12807
12808bool url::set_password(const std::string_view input) {
12809 if (cannot_have_credentials_or_port()) {
12810 return false;
12811 }
12812 password = ada::unicode::percent_encode(
12813 input, character_sets::USERINFO_PERCENT_ENCODE);
12814 return true;
12815}
12816
12817bool url::set_port(const std::string_view input) {
12818 if (cannot_have_credentials_or_port()) {

Callers 3

SetPasswordMethod · 0.80
canonicalize_passwordFunction · 0.80
ada_set_passwordFunction · 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