예제 #1
0
파일: Letter.cs 프로젝트: mgmoody42/NStack
            /// <summary>
            /// ToLower maps the rune to lower case giving priority to the special mapping.
            /// </summary>
            /// <returns>The lower cased rune if it can be.</returns>
            /// <param name="rune">Rune.</param>
            public uint ToLower(uint rune)
            {
                var result = to(Case.Lower, rune, Special);

                if (result == rune)
                {
                    result = Unicode.ToLower(rune);
                }
                return(result);
            }
예제 #2
0
파일: Letter.cs 프로젝트: mgmoody42/NStack
            /// <summary>
            /// ToTitle maps the rune to title case giving priority to the special mapping.
            /// </summary>
            /// <returns>The title cased rune if it can be.</returns>
            /// <param name="rune">Rune.</param>
            public uint ToTitle(uint rune)
            {
                var result = to(Case.Title, rune, Special);

                if (result == rune)
                {
                    result = Unicode.ToTitle(rune);
                }
                return(result);
            }