blob: 0b7f86049b1953f34357125f59c9fc7bdefa850a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util {
internal static class Strings {
internal static string trimLeft(string value, int character) {
int index = 0;
while (index < value.Length && value[index] == character) {
index++;
}
return value.Substring(index);
}
internal static bool isNullOrEmpty(string value) {
return string.IsNullOrEmpty(value);
}
internal static bool startsWithIgnoreCase(string value, string prefix) {
return value.StartsWith(prefix, StringComparison.InvariantCultureIgnoreCase);
}
internal static string codepointToString(int codePoint) {
return char.ConvertFromUtf32(codePoint);
}
}
}
|