blob: 59c671996afbdddedc7af49a4dbc78cb047b8c53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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);
}
}
}
|