Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ toUpper
Method
toUpper
source/core/StarString.cpp:35–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
String::Char String::toUpper(Char c) {
36
if (c >=
'a'
&& c <=
'z'
)
37
return c - 32;
38
else
39
return c;
40
}
41
42
bool String::charEqual(Char c1, Char c2, CaseSensitivity cs) {
43
if (cs == CaseInsensitive)
Callers
2
update
Method · 0.80
TEST
Function · 0.80
Calls
3
reserve
Method · 0.45
length
Method · 0.45
append
Method · 0.45
Tested by
1
TEST
Function · 0.64