-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vadiole/feature/block-selector
feature/block selector
- Loading branch information
Showing
24 changed files
with
1,011 additions
and
103 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
package vadiole.unicode.data | ||
|
||
import java.util.Locale | ||
import vadiole.unicode.utils.extension.leftPad | ||
import java.util.* | ||
|
||
class CharObj(val id: Int, val codePoint: Int, val name: String, val version: String, val blockName: String) { | ||
val char: String = String(Character.toChars(codePoint)) | ||
val hex = codePoint.toString(16).uppercase(Locale.ENGLISH).leftPad(4, '0') | ||
class CharObj(val id: Int, val codePointRaw: Int, val name: String, val version: String, val blockName: String) { | ||
val char: String = String(Character.toChars(codePointRaw)) | ||
val hex = codePointRaw.toString(16).uppercase(Locale.ENGLISH).leftPad(4, '0') | ||
val infoValues: Array<String> = arrayOf( | ||
"U+$hex", | ||
"&#$codePoint", | ||
"&#$codePointRaw", | ||
"\\$hex", | ||
version, | ||
) | ||
val link = "vadiole.github.io/unicode?c=$codePoint" | ||
} | ||
val link = "vadiole.github.io/unicode?c=$codePointRaw" | ||
} |
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
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
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
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
Oops, something went wrong.