terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ IndexOf() [1/2]

unsafe int Mono.Globalization.Unicode.SimpleCollator.IndexOf ( string s,
string target,
int start,
int length,
byte * targetSortKey,
SimpleCollator::Context ctx )
inlineprivate

Definition at line 538 of file SimpleCollator.cs.

539 {
540 int stringLength = target._stringLength;
541 long num = 0L;
542 char c = target[(int)num];
543 int stringLength2 = target._stringLength;
544 int stringLength3 = target._stringLength;
545 long num2 = 0L;
546 char c2 = target[(int)num2];
547 Contraction contraction = this.GetContraction(target, start, start);
548 int num3;
549 byte[] sortKey2;
550 if (contraction != null)
551 {
552 string replacement = contraction.Replacement;
553 if (targetSortKey == null)
554 {
555 return num3;
556 }
557 byte[] sortKey = contraction.SortKey;
558 targetSortKey->m_value = sortKey;
559 sortKey2 = contraction.SortKey;
560 }
561 if (targetSortKey != null)
562 {
563 char c3 = target[start];
564 char c4 = target[start];
565 int num4;
566 byte b = this.Category(num4);
567 targetSortKey->m_value = b;
568 byte b2 = this.Level1(num4);
569 if (sortKey2 == null)
570 {
571 }
572 byte b3 = MSCompatUnicodeTable.Level3(num4);
573 return num3;
574 }
575 return num3;
576 }
class f__AnonymousType0<< Count > j__TPar
Contraction GetContraction(string s, int start, int end)

References Mono.Globalization.Unicode.SimpleCollator.Category(), Mono.Globalization.Unicode.SimpleCollator.GetContraction(), j__TPar, System.L, Mono.Globalization.Unicode.SimpleCollator.Level1(), Mono.Globalization.Unicode.MSCompatUnicodeTable.Level3(), and System.start.