135 dateTimeFormatInfo._isReadOnly =
true;
540 public string TimeSeparator
588 public string[] AbbreviatedDayNames
604 if (
value.Length != 7)
630 if (
value.Length != 7)
655 if (
value.Length != 7)
665 public string[] AbbreviatedMonthNames
681 if (
value.Length != 13)
707 if (
value.Length != 13)
717 internal bool HasSpacesInMonthNames => (FormatFlags & DateTimeFormatFlags.UseSpacesInMonthNames) != 0;
719 internal bool HasSpacesInDayNames => (FormatFlags & DateTimeFormatFlags.UseSpacesInDayNames) != 0;
811 if (
value.Length != 13)
837 if (
value.Length != 13)
855 internal DateTimeFormatFlags FormatFlags
859 if (
formatFlags == DateTimeFormatFlags.NotInitialized)
942 public DateTimeFormatInfo()
1017 public object Clone()
1021 dateTimeFormatInfo._isReadOnly =
false;
1025 public int GetEra(
string eraName)
1027 if (eraName ==
null)
1031 if (eraName.Length == 0)
1072 public string GetAbbreviatedEraName(
int era)
1135 string[]
array = style
switch
1145 return array[month - 1];
1194 string[]
array =
new string[patterns1.Length *
patterns2.Length];
1217 return list.ToArray();
1242 return new string[1] {
"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK" };
1245 return new string[1] {
"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" };
1247 return new string[1] {
"yyyy'-'MM'-'dd'T'HH':'mm':'ss" };
1307 array =
new string[patterns.Length + 1];
1314 public static DateTimeFormatInfo
ReadOnly(DateTimeFormatInfo
dtfi)
1326 dateTimeFormatInfo._isReadOnly =
true;
1384 internal static void ValidateStyles(DateTimeStyles style,
bool styles =
false)
1386 if (((uint)style & 0
xFFFFFF00u) != 0 || (style & (DateTimeStyles.AssumeLocal | DateTimeStyles.AssumeUniversal)) == (DateTimeStyles.AssumeLocal | DateTimeStyles.AssumeUniversal) || (style & (DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeLocal | DateTimeStyles.AssumeUniversal | DateTimeStyles.RoundtripKind)) > DateTimeStyles.RoundtripKind)
1406 if ((FormatFlags & DateTimeFormatFlags.UseHebrewRule) != 0)
1422 else if (month == 7)
1437 dateTimeFormat.Calendar = JapaneseCalendar.GetDefaultInstance();
1449 dateTimeFormat.Calendar = TaiwanCalendar.GetDefaultInstance();
1466 array =
new TokenHashValue[199];
1467 string text = TimeSeparator.Trim();
1480 if (
_name ==
"fr-CA")
1567 for (
int j = 1;
j <= 13;
j++)
1571 if ((FormatFlags & DateTimeFormatFlags.UseGenitiveMonth) != 0)
1575 for (
int k = 1;
k <= 13;
k++)
1581 if ((FormatFlags & DateTimeFormatFlags.UseLeapYearMonth) != 0)
1583 for (
int l = 1;
l <= 13;
l++)
1589 for (
int m = 0;
m < 7;
m++)
1597 for (
int n = 1;
n <=
eras.Length;
n++)
1602 if (!GlobalizationMode.Invariant)
1606 for (
int num = 0; num < 7; num++)
1666 for (
int i = 1;
i <= 13;
i++)
1694 HebrewNumberParsingContext context =
new HebrewNumberParsingContext(0);
1718 return ch <=
'\u05ff';
1735 tokenType = TokenType.UnknownToken;
1737 char c =
str.m_current;
1738 bool flag =
char.IsLetter(c);
1746 tokenType = TokenType.UnknownToken;
1749 tokenType = TokenType.HebrewNumber;
1754 int num2 = 1 + c % 197;
1755 int num3 = str.Length -
str.Index;
1783 tokenType = tokenHashValue.tokenType &
TokenMask;
1793 tokenType = tokenHashValue.tokenType &
TokenMask;
1837 if (
string.IsNullOrEmpty(
str))
1842 if (
char.IsWhiteSpace(
str[0]) ||
char.IsWhiteSpace(
str[^1]))
1845 if (
str.Length == 0)
1852 int num3 = 1 + c % 197;
1869 if (((
tokenType2 & 0
xFF) == 0 && (tokenType & TokenType.RegularTokenMask) != 0) || ((
tokenType2 & 0
xFF00) == 0 && (tokenType & TokenType.SeparatorTokenMask) != 0))
1871 tokenHashValue.tokenType |= tokenType;
1872 if (tokenValue != 0)
1874 tokenHashValue.tokenValue = tokenValue;