42 {
43 if (!IsActive())
44 {
45 return;
46 }
48 Text component = GetComponent<Text>();
49 List<UIVertex> list = new List<UIVertex>();
50 IEnumerator enumerator = null;
51 Match match = null;
52 string text = component.text.Substring(0, component.cachedTextGenerator.characterCountVisible);
53 int lengthWithoutTags = text.Length;
54 if (component.supportRichText)
55 {
57 match = null;
58 if (enumerator.MoveNext())
59 {
60 match = (Match)enumerator.Current;
61 }
62 }
64 {
65 return;
66 }
67 int num = 0;
69 {
70 bool flag = false;
71 if (component.supportRichText && match != null && match.Index == num)
72 {
73 num += match.Length - 1;
74 match = null;
75 if (enumerator.MoveNext())
76 {
77 match = (Match)enumerator.Current;
78 }
79 flag = true;
80 }
81 if (!flag)
82 {
83 for (int i = 0; i < 6; i++)
84 {
87 }
88 }
89 num++;
90 }
91 vh.Clear();
92 vh.AddUIVertexTriangleStream(list);
93 }
MatchCollection GetRegexMatchedTags(string text, out int lengthWithoutTags)
int visibleCharacterCount