Skip to content

Commit 59bc870

Browse files
merge PR #111 into stable
2 parents ce2f191 + 3975a91 commit 59bc870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/client/Apigen/src/apigen/Apigen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static IList<string> IdentifierParts(string name) {
133133
public static string MangleClass(string name) {
134134
StringBuilder sb = new StringBuilder();
135135
foreach (String s in IdentifierParts(name)) {
136-
sb.Append(Char.ToUpper(s[0]) + s.Substring(1).ToLower());
136+
sb.Append(Char.ToUpperInvariant(s[0]) + s.Substring(1).ToLowerInvariant());
137137
}
138138
return sb.ToString();
139139
}
@@ -143,9 +143,9 @@ public static string MangleMethod(string name) {
143143
bool useUpper = false;
144144
foreach (String s in IdentifierParts(name)) {
145145
if (useUpper) {
146-
sb.Append(Char.ToUpper(s[0]) + s.Substring(1).ToLower());
146+
sb.Append(Char.ToUpperInvariant(s[0]) + s.Substring(1).ToLowerInvariant());
147147
} else {
148-
sb.Append(s.ToLower());
148+
sb.Append(s.ToLowerInvariant());
149149
useUpper = true;
150150
}
151151
}

0 commit comments

Comments
 (0)