MemoryExtensions.ToLower Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the specified culture.
public:
[System::Runtime::CompilerServices::Extension]
static int ToLower(ReadOnlySpan<char> source, Span<char> destination, System::Globalization::CultureInfo ^ culture);
public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, System.Globalization.CultureInfo? culture);
public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, System.Globalization.CultureInfo culture);
static member ToLower : ReadOnlySpan<char> * Span<char> * System.Globalization.CultureInfo -> int
<Extension()>
Public Function ToLower (source As ReadOnlySpan(Of Char), destination As Span(Of Char), culture As CultureInfo) As Integer
- source
- ReadOnlySpan<Char>
The source span.
- culture
- CultureInfo
An object that supplies culture-specific casing rules.
The number of characters written into the destination span. If the destination is too small, returns -1.
The source and destination buffers overlap.
If culture
is null
, CultureInfo.CurrentCulture will be used.
Product | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: