コード例 #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);
            }