Merge pull request 'feature: add RFC 8259 JSON parser/serializer and string utility extensions' (#62) from feature/json into develop
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Reviewed-on: #62 Reviewed-by: Aaron Hance <[email protected]>
This commit was merged in pull request #62.
This commit is contained in:
commit
140d3d6d68
8 files changed
+2457
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -106,6 +106,12 @@ function intToString(i : uint32) : pchar;
|
||||
```
|
||||
Returns a heap-allocated decimal string representation of `i`.
|
||||
|
||||
### int64ToString
|
||||
```pascal
|
||||
function int64ToString(i : int64) : pchar;
|
||||
```
|
||||
Returns a heap-allocated decimal string representation of the signed 64-bit integer `i`. Negative values are prefixed with `'-'`.
|
||||
|
||||
### hexStringToInt
|
||||
```pascal
|
||||
function hexStringToInt(str : pchar) : uint32;
|
||||
@@ -118,6 +124,12 @@ function boolToString(b : boolean; ext : boolean) : pchar;
|
||||
```
|
||||
Returns a heap-allocated string for the boolean `b`. When `ext` is `true`, returns `'true'` or `'false'`; when `false`, returns `'1'` or `'0'`.
|
||||
|
||||
### doubleToStr
|
||||
```pascal
|
||||
function doubleToStr(d : Double) : pchar;
|
||||
```
|
||||
Returns a heap-allocated decimal string representation of the 64-bit floating-point value `d`. Integer values are emitted without a decimal point (e.g. `42`). Fractional values include up to 15 significant digits with trailing zeros removed. Very large or very small values use scientific notation (e.g. `1.5e+20`).
|
||||
|
||||
### UnitTest
|
||||
```pascal
|
||||
procedure UnitTest;
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user