initial commits
parent
74bc5b5210
commit
b65ba1a411
|
@ -1,9 +1,5 @@
|
||||||
package runesymbols
|
package runesymbols
|
||||||
|
|
||||||
import (
|
|
||||||
"sourcecode.social/reiver/go-hexadeca/symbols/byte"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Persian is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using Persian symbols from Unicode UTF-8.
|
// Persian is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using Persian symbols from Unicode UTF-8.
|
||||||
// I.e.,
|
// I.e.,
|
||||||
//
|
//
|
||||||
|
@ -40,17 +36,3 @@ func Persian(value byte) rune {
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpperCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using upper-case symbols from ASCII / Unicode UTF-8.
|
|
||||||
// I.e.,
|
|
||||||
//
|
|
||||||
// '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
|
||||||
//
|
|
||||||
// Example usage:
|
|
||||||
//
|
|
||||||
// mostSignificiant, leastSignificant := hexadeca.EncodeByte(value, runesymbols.UpperCase)
|
|
||||||
//
|
|
||||||
// If ‘value’ was 254 (== 0xFE) then ‘mostSignificiant’ would be 'F' and and ‘leastSignificant’ would be 'E'.
|
|
||||||
func UpperCase(value byte) rune {
|
|
||||||
return rune(bytesymbols.UpperCase(value))
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package runesymbols
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sourcecode.social/reiver/go-hexadeca/symbols/byte"
|
||||||
|
)
|
||||||
|
|
||||||
|
// UpperCase is used with hexadeca.EncodeByte() to encode a byte into hexadecimal symbols using upper-case symbols from ASCII / Unicode UTF-8.
|
||||||
|
// I.e.,
|
||||||
|
//
|
||||||
|
// '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
||||||
|
//
|
||||||
|
// Example usage:
|
||||||
|
//
|
||||||
|
// mostSignificiant, leastSignificant := hexadeca.EncodeByte(value, runesymbols.UpperCase)
|
||||||
|
//
|
||||||
|
// If ‘value’ was 254 (== 0xFE) then ‘mostSignificiant’ would be 'F' and and ‘leastSignificant’ would be 'E'.
|
||||||
|
func UpperCase(value byte) rune {
|
||||||
|
return rune(bytesymbols.UpperCase(value))
|
||||||
|
}
|
Loading…
Reference in New Issue