Skip to content
IntTryToStrRadix

IntTryToStrRadix

Description

Convert an integer to text in the given radix. Two forms via argument count:

  • IntTryToStrRadix(out, value, radix, uppercase)

uses value’s allocator.

  • IntTryToStrRadix(out, value, radix, uppercase, alloc)

uses the explicit allocator.

Success

Returns true; *out holds the textual form of value in base radix. Letters are uppercase when uppercase is true, lowercase otherwise.

Failure

Returns false when radix is outside the supported range or when an intermediate allocation fails; *out is left initialized as an empty Str on alloc.

Usage example (Cross-references)

Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on