33 references to TrimType
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (24)
2391return TrimWhiteSpaceHelper(TrimType.Both); 2401return TrimHelper(&trimChar, 1, TrimType.Both); 2454return TrimWhiteSpaceHelper(TrimType.Both); 2458return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2475return TrimWhiteSpaceHelper(TrimType.Both); 2480return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2485public string TrimStart() => TrimWhiteSpaceHelper(TrimType.Head); 2488public unsafe string TrimStart(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Head); 2528return TrimWhiteSpaceHelper(TrimType.Head); 2532return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2549return TrimWhiteSpaceHelper(TrimType.Head); 2554return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2559public string TrimEnd() => TrimWhiteSpaceHelper(TrimType.Tail); 2562public unsafe string TrimEnd(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Tail); 2602return TrimWhiteSpaceHelper(TrimType.Tail); 2606return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2623return TrimWhiteSpaceHelper(TrimType.Tail); 2628return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2632private string TrimWhiteSpaceHelper(TrimType trimType) 2640if ((trimType & TrimType.Head) != 0) 2651if ((trimType & TrimType.Tail) != 0) 2665private unsafe string TrimHelper(char* trimChars, int trimCharsLength, TrimType trimType) 2676if ((trimType & TrimType.Head) != 0) 2697if ((trimType & TrimType.Tail) != 0)
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)