MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / toLowerCase

Method toLowerCase

src/String.cpp:1082–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082String String::toLowerCase() const
1083{
1084 #ifdef HX_SMART_STRINGS
1085 if (isUTF16Encoded())
1086 {
1087 char16_t *result = String::allocChar16Ptr(length);
1088 for(int i=0;i<length;i++)
1089 {
1090 result[i] = unicase_tolower( __w[i] );
1091 }
1092 return String(result,length);
1093 }
1094 #endif
1095 char *result = hx::NewString(length);
1096 for(int i=0;i<length;i++)
1097 result[i] = tolower( __s[i] );
1098 return String(result,length);
1099}
1100
1101
1102static int hex(int inChar)

Callers 2

runStringMethod · 0.80
strToCaseMethod · 0.80

Calls 4

isUTF16EncodedFunction · 0.85
unicase_tolowerFunction · 0.85
NewStringFunction · 0.85
StringClass · 0.50

Tested by

no test coverage detected