Created
February 23, 2015 05:25
-
-
Save synchrok/ee157f38cf7e9eb54dde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Utility { | |
public static bool Eulrlega(string word) { | |
var last = word[word.Length - 1]; | |
if (last < 0xAC00) | |
return true; | |
last -= (char)0xAC00; | |
var jong = (char)((last % 28) + 0x11a7); | |
return (jong != 4519); | |
} | |
public static string GetEulrl(this string word) { | |
return Eulrlega(word) ? "을" : "를"; | |
} | |
public static string GetEga(this string word) { | |
return Eulrlega(word) ? "이" : "가"; | |
} | |
public static string GetEunnn(this string word) { | |
return Eulrlega(word) ? "은" : "는"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: