41 references to TimeSpanFormat
System.Private.CoreLib (41)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs (5)
32
TimeSpanFormat
.StandardFormat sf =
TimeSpanFormat
.StandardFormat.C;
41
sf =
TimeSpanFormat
.StandardFormat.g;
45
sf =
TimeSpanFormat
.StandardFormat.G;
53
return
TimeSpanFormat
.TryFormatStandard(value, sf, decimalSeparator, destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (31)
277
internal
TimeSpanFormat
.FormatLiterals PositiveLocalized
291
internal
TimeSpanFormat
.FormatLiterals NegativeLocalized
305
internal bool FullAppCompatMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
314
internal bool PartialAppCompatMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
323
internal bool FullMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
334
internal bool FullDMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
341
internal bool FullHMMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
349
internal bool FullDHMMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
358
internal bool FullHMSMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
367
internal bool FullDHMSMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
377
internal bool FullHMSFMatch(
TimeSpanFormat
.FormatLiterals pattern) =>
391
private
TimeSpanFormat
.FormatLiterals _posLoc;
392
private
TimeSpanFormat
.FormatLiterals _negLoc;
783
if (raw.FullMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
788
if (!match && raw.FullMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
855
if (raw.FullHMSFMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
862
if (!match && raw.FullDHMSMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
869
if (!match && raw.FullAppCompatMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
876
if (!match && raw.FullHMSFMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
883
if (!match && raw.FullDHMSMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
890
if (!match && raw.FullAppCompatMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
981
if (raw.FullHMSMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
988
if (!match && raw.FullDHMMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
995
if (!match && raw.PartialAppCompatMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
1002
if (!match && raw.FullHMSMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
1009
if (!match && raw.FullDHMMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
1016
if (!match && raw.PartialAppCompatMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
1105
if (raw.FullHMMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
1111
if (!match && raw.FullHMMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
1174
if (raw.FullDMatch(
TimeSpanFormat
.PositiveInvariantFormatLiterals))
1180
if (!match && raw.FullDMatch(
TimeSpanFormat
.NegativeInvariantFormatLiterals))
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (5)
861
public override string ToString() =>
TimeSpanFormat
.FormatC(this);
862
public string ToString([StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format) =>
TimeSpanFormat
.Format(this, format, null);
863
public string ToString([StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format, IFormatProvider? formatProvider) =>
TimeSpanFormat
.Format(this, format, formatProvider);
866
=>
TimeSpanFormat
.TryFormat(this, destination, out charsWritten, format, formatProvider);
870
=>
TimeSpanFormat
.TryFormat(this, utf8Destination, out bytesWritten, format, formatProvider);