1
0
Fork 0

Export CodePointToGlyph from format package

This commit is contained in:
Daniele Tricoli 2015-11-21 19:08:39 +01:00
parent 6ce91c9962
commit c80100cbd8
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ func (t *TextFormatter) Format(s *sql.UnicodeData) (string, error) {
var buffer []string
glyph, err := codePointToGlyph(s.CodePoint)
glyph, err := CodePointToGlyph(s.CodePoint)
if err != nil {
return "", err
}
@ -44,7 +44,7 @@ func (t *TextFormatter) Format(s *sql.UnicodeData) (string, error) {
}
// Convert an unicode codepoint into a string.
func codePointToGlyph(codepoint string) (string, error) {
func CodePointToGlyph(codepoint string) (string, error) {
s, err := strconv.ParseInt(codepoint, 16, 32)
if err != nil {