33 references to TrimType
System.Private.CoreLib (33)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (24)
2334return TrimWhiteSpaceHelper(TrimType.Both); 2344return TrimHelper(&trimChar, 1, TrimType.Both); 2352return TrimWhiteSpaceHelper(TrimType.Both); 2356return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2373return TrimWhiteSpaceHelper(TrimType.Both); 2378return TrimHelper(pTrimChars, trimChars.Length, TrimType.Both); 2383public string TrimStart() => TrimWhiteSpaceHelper(TrimType.Head); 2386public unsafe string TrimStart(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Head); 2393return TrimWhiteSpaceHelper(TrimType.Head); 2397return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2414return TrimWhiteSpaceHelper(TrimType.Head); 2419return TrimHelper(pTrimChars, trimChars.Length, TrimType.Head); 2424public string TrimEnd() => TrimWhiteSpaceHelper(TrimType.Tail); 2427public unsafe string TrimEnd(char trimChar) => TrimHelper(&trimChar, 1, TrimType.Tail); 2434return TrimWhiteSpaceHelper(TrimType.Tail); 2438return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2455return TrimWhiteSpaceHelper(TrimType.Tail); 2460return TrimHelper(pTrimChars, trimChars.Length, TrimType.Tail); 2464private string TrimWhiteSpaceHelper(TrimType trimType) 2472if ((trimType & TrimType.Head) != 0) 2483if ((trimType & TrimType.Tail) != 0) 2497private unsafe string TrimHelper(char* trimChars, int trimCharsLength, TrimType trimType) 2508if ((trimType & TrimType.Head) != 0) 2529if ((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)