MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / to_upper

Method to_upper

core/string/ustring.cpp:1383–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383String String::to_upper() const {
1384 if (is_empty()) {
1385 return *this;
1386 }
1387
1388 String upper;
1389 upper.resize_uninitialized(size());
1390 const char32_t *old_ptr = ptr();
1391 char32_t *upper_ptrw = upper.ptrw();
1392
1393 while (*old_ptr) {
1394 *upper_ptrw++ = _find_upper(*old_ptr++);
1395 }
1396
1397 *upper_ptrw = 0;
1398
1399 return upper;
1400}
1401
1402String String::to_lower() const {
1403 if (is_empty()) {

Callers 15

_load_bitmap_fontMethod · 0.80
_update_base_fontMethod · 0.80
pascal_to_pascal_caseFunction · 0.80
get_dotnet_root_from_envFunction · 0.80
_process_commandMethod · 0.80
_string_to_upperMethod · 0.80
_string_to_upperMethod · 0.80
find_named_colorMethod · 0.80
get_filesystem_typeMethod · 0.80
_add_stageMethod · 0.80

Calls 3

_find_upperFunction · 0.85
resize_uninitializedMethod · 0.45
ptrwMethod · 0.45

Tested by 1

_load_resourceMethod · 0.64