summaryrefslogtreecommitdiff
path: root/src/lib/utf8.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utf8.go')
-rw-r--r--src/lib/utf8.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/utf8.go b/src/lib/utf8.go
index 448f4819c..ff55df802 100644
--- a/src/lib/utf8.go
+++ b/src/lib/utf8.go
@@ -256,17 +256,6 @@ func EncodeRune(rune int, p []byte) int {
return 4;
}
-// EncodeRuneToString returns the UTF-8 encoding of the rune.
-func EncodeRuneToString(rune int) string {
- if rune < _Rune1Max {
- return string([1]byte{byte(rune)})
- }
-
- var buf [UTFMax]byte;
- size := EncodeRune(rune, buf);
- return string(buf[0:size]);
-}
-
// RuneCount returns the number of runes in p. Erroneous and short
// encodings are treated as single runes of width 1 byte.
func RuneCount(p []byte) int {