For toLowerXxx such as toLowerHex, they are just like Nim's strutils.toHex:
- no prefix and sign char will be added
- all x are treated as unsigned values (i.e., for signed integers, their two's complement representation will be used)
Procs
func addLowerHex(result: var string; x: SomeInt8)
- Source Edit
func addLowerHex[T: SomeInteger](result: var string; x: T; len: Positive = strLenInHex(T))
-
Converts x to its lower hexadecimal representation and add to result.
The resulting string will be exactly len characters long. No prefix like 0x is generated. x is treated as an unsigned value.
Source Edit func toLowerbin[T: SomeInteger](x: T; len: Positive = sizeof(T) * 8): string
- Source Edit
func toLowerhex[T: SomeInteger](x: T; len: Positive = sizeof(T) * 2): string
- Source Edit
func toLowerHex(s: openArray[char]): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func toLowerHex(s: openArray[char]; sep: char): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func toLoweroct[T: SomeInteger](x: T; len: Positive = sizeof(T) * 3): string
- Source Edit