MCPcopy Create free account
hub / github.com/apache/fory / EscapeAllUpper

Method EscapeAllUpper

csharp/src/Fory/MetaString.cs:378–395  ·  view source on GitHub ↗
(string input)

Source from the content-addressed store, hash-verified

376 }
377
378 private static string EscapeAllUpper(string input)
379 {
380 StringBuilder sb = new(input.Length * 2);
381 foreach (char c in input)
382 {
383 if (char.IsUpper(c))
384 {
385 sb.Append('|');
386 sb.Append(char.ToLowerInvariant(c));
387 }
388 else
389 {
390 sb.Append(c);
391 }
392 }
393
394 return sb.ToString();
395 }
396
397 private static bool IsLatin(string input)
398 {

Callers

nothing calls this directly

Calls 2

AppendMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected