This file contains hidden or 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
| default android/drawable-mdpi/, 150% android/drawable-hdpi/, 200% android/drawable-xhdpi/, 300% android/drawable-xxhdpi/, 400% android/drawable-xxxhdpi/, 100% iphone/, 200% iphone/@2x, 300% iphone/@3x |
This file contains hidden or 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
| import java.util.regex.Matcher | |
| import java.util.regex.Pattern | |
| fun String.unicode(): String { | |
| return unicodeToUtf8().unicodeToUtf8(16) | |
| } | |
| fun String.unicodeToUtf8(radix: Int = 10): String { | |
| val p = Pattern.compile(if (radix == 10) "&#(\\d+);|." else "&#x(.+?);|.") | |
| val sb = StringBuilder() |
OlderNewer