Utf8Parser.TryParse 메서드

정의

오버로드

Name Description
TryParse(ReadOnlySpan<Byte>, Boolean, Int32, Char)

Boolean Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Byte, Int32, Char)

Byte Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, DateTime, Int32, Char)

DateTime Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, DateTimeOffset, Int32, Char)

DateTimeOffset Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Decimal, Int32, Char)

Decimal Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Double, Int32, Char)

Double Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Guid, Int32, Char)

Guid Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Int16, Int32, Char)

Int16 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Int32, Int32, Char)

Int32 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Int64, Int32, Char)

Int64 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, SByte, Int32, Char)

SByte Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Single, Int32, Char)

Single Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, TimeSpan, Int32, Char)

TimeSpan Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, UInt16, Int32, Char)

UInt16 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, UInt32, Int32, Char)

UInt32 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, UInt64, Int32, Char)

UInt64 Utf8 문자열의 시작 부분에 구문 분석합니다.

TryParse(ReadOnlySpan<Byte>, Boolean, Int32, Char)

Source:
Utf8Parser.Boolean.cs
Source:
Utf8Parser.Boolean.cs
Source:
Utf8Parser.Boolean.cs
Source:
Utf8Parser.Boolean.cs
Source:
Utf8Parser.Boolean.cs

Boolean Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out bool value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * bool * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Boolean, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Boolean

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다. 지원되는 형식은 'G', 'l'default.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

구문 분석이 대/소문자를 구분하지 않습니다. 형식 매개 변수의 유효성을 검사하여 지원되는지 확인합니다. 그러나 지원되는 모든 형식은 동일하게 처리됩니다.

적용 대상

TryParse(ReadOnlySpan<Byte>, Byte, Int32, Char)

Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs

Byte Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * byte * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Byte, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Byte

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 122
N/n 122
X/x 7a

적용 대상

TryParse(ReadOnlySpan<Byte>, DateTime, Int32, Char)

Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs

DateTime Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out DateTime value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * DateTime * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As DateTime, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
DateTime

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식 코멘트
G(기본값) 05/25/2017 10:30:15
R 화요일, 03 1 월 2017 08:08:05 GMT (RFC 1123)
l 화, 03 jan 2017 08:08:05 gmt (소문자 RFC 1123)
O 2017-06-12T05:30:45.7680000-07:00 (라운드트립 가능)

적용 대상

TryParse(ReadOnlySpan<Byte>, DateTimeOffset, Int32, Char)

Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs
Source:
Utf8Parser.Date.cs

DateTimeOffset Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out DateTimeOffset value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * DateTimeOffset * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As DateTimeOffset, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
DateTimeOffset

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식 코멘트
G(기본값) 05/25/2017 10:30:15
R 화요일, 03 1 월 2017 08:08:05 GMT (RFC 1123)
l 화, 03 jan 2017 08:08:05 gmt (소문자 RFC 1123)
O 2017-06-12T05:30:45.7680000-07:00 (라운드트립 가능)

적용 대상

TryParse(ReadOnlySpan<Byte>, Decimal, Int32, Char)

Source:
Utf8Parser.Decimal.cs
Source:
Utf8Parser.Decimal.cs
Source:
Utf8Parser.Decimal.cs
Source:
Utf8Parser.Decimal.cs
Source:
Utf8Parser.Decimal.cs

Decimal Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out decimal value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * decimal * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Decimal, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Decimal

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

적용 대상

TryParse(ReadOnlySpan<Byte>, Double, Int32, Char)

Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs

Double Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out double value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * double * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Double, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Double

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

적용 대상

TryParse(ReadOnlySpan<Byte>, Guid, Int32, Char)

Source:
Utf8Parser.Guid.cs
Source:
Utf8Parser.Guid.cs
Source:
Utf8Parser.Guid.cs
Source:
Utf8Parser.Guid.cs
Source:
Utf8Parser.Guid.cs

Guid Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * Guid * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Guid, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Guid

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 필요한 형식
D(기본값) nnnnnnnn-nnnn-nnnn-nnnnn-nnnnn-nnnnnnnnnn
b {nnnnnnn-nnnn-nnnn-nnnnn-nnnn-nnnnnnn}
P (nnnnnnnn-nnnn-nnnn-nnn-nnnnn-nnnnnnnn)
N nnnnnnnnnnnnnnnnnnnnn

적용 대상

TryParse(ReadOnlySpan<Byte>, Int16, Int32, Char)

Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs

Int16 Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out short value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * int16 * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Short, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Int16

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상

TryParse(ReadOnlySpan<Byte>, Int32, Int32, Char)

Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs

Int32 Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out int value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * int * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Integer, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Int32

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상

TryParse(ReadOnlySpan<Byte>, Int64, Int32, Char)

Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs

Int64 Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out long value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * int64 * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Long, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Int64

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상

TryParse(ReadOnlySpan<Byte>, SByte, Int32, Char)

Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs
Source:
Utf8Parser.Integer.Signed.cs

Important

이 API는 CLS 규격이 아닙니다.

SByte Utf8 문자열의 시작 부분에 구문 분석합니다.

[System.CLSCompliant(false)]
public static bool TryParse(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed, char standardFormat = '\0');
[<System.CLSCompliant(false)>]
static member TryParse : ReadOnlySpan<byte> * sbyte * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As SByte, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
SByte

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

특성

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 122
N/n 122
X/x 7a

적용 대상

TryParse(ReadOnlySpan<Byte>, Single, Int32, Char)

Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs
Source:
Utf8Parser.Float.cs

Single Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out float value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * single * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As Single, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
Single

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

적용 대상

TryParse(ReadOnlySpan<Byte>, TimeSpan, Int32, Char)

Source:
Utf8Parser.TimeSpan.cs
Source:
Utf8Parser.TimeSpan.cs
Source:
Utf8Parser.TimeSpan.cs
Source:
Utf8Parser.TimeSpan.cs
Source:
Utf8Parser.TimeSpan.cs

TimeSpan Utf8 문자열의 시작 부분에 구문 분석합니다.

public static bool TryParse(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed, char standardFormat = '\0');
static member TryParse : ReadOnlySpan<byte> * TimeSpan * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As TimeSpan, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
TimeSpan

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

설명

지원되는 형식:

문자열 서식 지정 필요한 형식 코멘트
c/t/T(기본값) [-][d.]hh:mm:ss[.fffffff] (상수 형식)
G [-]d:hh:mm:ss.fffffff (일반 long)
g [-][d:][h]h:mm:ss[.f[f[f[f[f]]]]]] (일반 약어)

적용 대상

TryParse(ReadOnlySpan<Byte>, UInt16, Int32, Char)

Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs

Important

이 API는 CLS 규격이 아닙니다.

UInt16 Utf8 문자열의 시작 부분에 구문 분석합니다.

[System.CLSCompliant(false)]
public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = '\0');
[<System.CLSCompliant(false)>]
static member TryParse : ReadOnlySpan<byte> * uint16 * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As UShort, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
UInt16

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

특성

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상

TryParse(ReadOnlySpan<Byte>, UInt32, Int32, Char)

Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs

Important

이 API는 CLS 규격이 아닙니다.

UInt32 Utf8 문자열의 시작 부분에 구문 분석합니다.

[System.CLSCompliant(false)]
public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = '\0');
[<System.CLSCompliant(false)>]
static member TryParse : ReadOnlySpan<byte> * uint32 * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As UInteger, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
UInt32

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

특성

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상

TryParse(ReadOnlySpan<Byte>, UInt64, Int32, Char)

Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs
Source:
Utf8Parser.Integer.Unsigned.cs

Important

이 API는 CLS 규격이 아닙니다.

UInt64 Utf8 문자열의 시작 부분에 구문 분석합니다.

[System.CLSCompliant(false)]
public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = '\0');
[<System.CLSCompliant(false)>]
static member TryParse : ReadOnlySpan<byte> * uint64 * int * char -> bool
Public Shared Function TryParse (source As ReadOnlySpan(Of Byte), ByRef value As ULong, ByRef bytesConsumed As Integer, Optional standardFormat As Char = '\0') As Boolean

매개 변수

source
ReadOnlySpan<Byte>

구문 분석할 Utf8 문자열입니다.

value
UInt64

메서드가 반환될 때 구문 분석 작업이 성공한 경우 구문 분석된 source값을 포함합니다.

bytesConsumed
Int32

구문 분석 작업이 성공한 경우 메서드가 반환될 때 구문 분석된 부분 문자열의 길이(바이트)를 포함합니다. 메서드가 실패하면 bytesConsumed 0으로 설정됩니다.

standardFormat
Char

Utf8 문자열의 예상 형식입니다.

반품

true 성공을 위한 것입니다. false 문자열이 구문상 유효하지 않거나 오버플로 또는 언더플로가 발생한 경우

특성

설명

지원되는 형식:

문자열 서식 지정 예제 예상 형식
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

적용 대상