Decompose() static private method

static private Decompose ( string source, int checkType ) : string
source string
checkType int
return string
Ejemplo n.º 1
0
        private static string Decompose(string source, int checkType)
        {
            StringBuilder stringBuilder = null;

            Normalization.Decompose(source, ref stringBuilder, checkType);
            return((stringBuilder == null) ? source : stringBuilder.ToString());
        }
Ejemplo n.º 2
0
        public static string Normalize(string source, int type)
        {
            switch (type)
            {
            case 1:
            case 3:
                return(Normalization.Decompose(source, type));

            default:
                return(Normalization.Compose(source, type));
            }
        }
Ejemplo n.º 3
0
        private static string Compose(string source, int checkType)
        {
            StringBuilder stringBuilder = null;

            Normalization.Decompose(source, ref stringBuilder, checkType);
            if (stringBuilder == null)
            {
                stringBuilder = Normalization.Combine(source, 0, checkType);
            }
            else
            {
                Normalization.Combine(stringBuilder, 0, checkType);
            }
            return((stringBuilder == null) ? source : stringBuilder.ToString());
        }