33 references to TrimType
System.Private.CoreLib (33)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (24)
2685return TrimWhiteSpaceHelper(TrimType.Both); 2695return TrimHelper(&trimChar, 1, TrimType.Both); 2737return TrimWhiteSpaceHelper(TrimType.Both); 2741return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2758return TrimWhiteSpaceHelper(TrimType.Both); 2763return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2768public string TrimStart() => TrimWhiteSpaceHelper(TrimType.Head); 2771public unsafe string TrimStart(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Head); 2804return TrimWhiteSpaceHelper(TrimType.Head); 2808return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2825return TrimWhiteSpaceHelper(TrimType.Head); 2830return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2835public string TrimEnd() => TrimWhiteSpaceHelper(TrimType.Tail); 2838public unsafe string TrimEnd(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Tail); 2871return TrimWhiteSpaceHelper(TrimType.Tail); 2875return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2892return TrimWhiteSpaceHelper(TrimType.Tail); 2897return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2901private string TrimWhiteSpaceHelper(TrimType trimType) 2909if ((trimType & TrimType.Head) != 0) 2920if ((trimType & TrimType.Tail) != 0) 2934private unsafe string TrimHelper(char* trimChars, int trimCharsLength, TrimType trimType) 2945if ((trimType & TrimType.Head) != 0) 2966if ((trimType & TrimType.Tail) != 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Trimming.cs (9)
15public static Range Trim(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Both); 18public static Range Trim(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Both); 25public static Range TrimStart(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Head); 28public static Range TrimStart(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Head); 35public static Range TrimEnd(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Tail); 38public static Range TrimEnd(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Tail); 40private static Range TrimHelper<T>(ReadOnlySpan<T> value, TrimType trimType) 55if ((trimType & TrimType.Head) != 0) 68if ((trimType & TrimType.Tail) != 0)