| File: Evaluation\Conditionals\CharacterUtilities.cs | Web Access |
| Project: src\msbuild\src\Build\Microsoft.Build.csproj (Microsoft.Build) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Build.Evaluation { internal static class CharacterUtilities { internal static bool IsNumberStart(char candidate) { return candidate == '+' || candidate == '-' || candidate == '.' || char.IsDigit(candidate); } internal static bool IsSimpleStringStart(char candidate) { return candidate == '_' || char.IsLetter(candidate); } internal static bool IsSimpleStringChar(char candidate) { return IsSimpleStringStart(candidate) || char.IsDigit(candidate); } internal static bool IsHexDigit(char candidate) { return char.IsDigit(candidate) || ((uint)((candidate | 0x20) - 'a') <= 'f' - 'a'); } } }