From 9f1f15a266b6e12c4884674685da9b6ad711589c Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 27 Oct 2023 22:19:53 -0700 Subject: [PATCH] initial commits --- encodebyte.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/encodebyte.go b/encodebyte.go index 0629e51..9591589 100644 --- a/encodebyte.go +++ b/encodebyte.go @@ -2,16 +2,17 @@ package hexadeca import ( "sourcecode.social/reiver/go-hexadeca/bytes" + "sourcecode.social/reiver/go-hexadeca/runes" ) -func EncodeByte(value byte, symbolFunc func(byte)byte) (mostSignificant byte, leastSignificant byte) { - return hexadecabytes.EncodeByte(value, symbolFunc) -} - func EncodeByteUsingLowerCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) { return hexadecabytes.EncodeByteUsingLowerCaseSymbols(value) } +func EncodeByteUsingPersianSymbols(value byte) (mostSignificant rune, leastSignificant rune) { + return hexadecarunes.EncodeByteUsingPersianSymbols(value) +} + func EncodeByteUsingUpperCaseSymbols(value byte) (mostSignificant byte, leastSignificant byte) { return hexadecabytes.EncodeByteUsingUpperCaseSymbols(value) }