8 references to CharUtils
Microsoft.Build.Tasks.Git (8)
GitDataReader\GitReferenceResolver.cs (4)
133
var separator = line.IndexOfAny(
CharUtils
.WhitespaceSeparators);
145
var nextSeparator = line.IndexOfAny(
CharUtils
.WhitespaceSeparators, separator + 1);
377
return File.ReadAllText(path).TrimEnd(
CharUtils
.AsciiWhitespace);
389
=> reference.Length == _objectNameFormat.HashSize * 2 && reference.All(
CharUtils
.IsHexadecimalDigit);
GitDataReader\GitRefTableReader.Primitives.cs (2)
107
builder.Append(
CharUtils
.ToHexDigit((byte)(b >> 4)));
108
builder.Append(
CharUtils
.ToHexDigit((byte)(b & 0xf)));
GitDataReader\GitRepository.cs (2)
444
var link = content[GitDirPrefix.Length..].TrimEnd(
CharUtils
.AsciiWhitespace);
472
commonDirectory = Path.Combine(directory, File.ReadAllText(commonLinkPath).TrimEnd(
CharUtils
.AsciiWhitespace));