DecomposeChar() static private method

static private DecomposeChar ( StringBuilder &sb, int &buf, string s, int i, int &start ) : void
sb StringBuilder
buf int
s string
i int
start int
return void
コード例 #1
0
        private static void Decompose(string source, ref StringBuilder sb, int checkType)
        {
            int[] array = null;
            int   num   = 0;

            for (int i = 0; i < source.Length; i++)
            {
                if (Normalization.QuickCheck(source[i], checkType) == NormalizationCheck.No)
                {
                    Normalization.DecomposeChar(ref sb, ref array, source, i, ref num);
                }
            }
            if (sb != null)
            {
                sb.Append(source, num, source.Length - num);
            }
            Normalization.ReorderCanonical(source, ref sb, 1);
        }