Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chadaustin/sajson
/ functions
Functions
327 in github.com/chadaustin/sajson
⨍
Functions
327
◇
Types & classes
89
↓ 96 callers
Method
get_type
Returns the JSON value's \ref type.
include/sajson.h:462
↓ 74 callers
Function
parse
include/sajson.h:2593
↓ 58 callers
Method
get_array_element
Returns the nth element of an array. Calling with an out-of-bound index is undefined behavior. Only legal if get_type() is TYPE_ARRAY.
include/sajson.h:514
↓ 48 callers
Method
GetFailureCount
third-party/UnitTest++/src/TestResults.cpp:54
↓ 46 callers
Method
get_length
Returns the length of the object or array. Only legal if get_type() is TYPE_ARRAY or TYPE_OBJECT.
include/sajson.h:506
↓ 39 callers
Method
get_root
If is_valid(), returns the document's root \ref value.
include/sajson.h:846
↓ 37 callers
Method
is_valid
* Returns true if the document was parsed successfully. * If true, call get_root() to access the document's root value. * If false, call get
include/sajson.h:841
↓ 37 callers
Function
success
tests/test.cpp:24
↓ 32 callers
Method
Add
third-party/UnitTest++/src/TestList.cpp:14
↓ 31 callers
Method
get_error_line
If not is_valid(), returns the one-based line number where the parse failed.
include/sajson.h:850
↓ 30 callers
Method
_internal_get_error_code
WARNING: Internal function which is subject to change
include/sajson.h:873
↓ 27 callers
Method
GetText
third-party/UnitTest++/src/MemoryOutStream.cpp:8
↓ 24 callers
Method
get_error_column
If not is_valid(), returns the one-based column number where the parse failed.
include/sajson.h:854
↓ 23 callers
Function
get_error_text
include/sajson.h:750
↓ 20 callers
Method
OnTestFailure
third-party/UnitTest++/src/TestResults.cpp:25
↓ 19 callers
Method
GetHead
third-party/UnitTest++/src/TestList.cpp:29
↓ 18 callers
Method
RunTestsIf
third-party/UnitTest++/src/TestRunner.h:31
↓ 14 callers
Method
ReportTestStart
third-party/UnitTest++/src/tests/RecordingReporter.h:36
↓ 14 callers
Method
get_double_value
If a numeric value was parsed as a double, returns it. Only legal if get_type() is TYPE_DOUBLE.
include/sajson.h:594
↓ 14 callers
Method
get_integer_value
If a numeric value was parsed as a 32-bit integer, returns it. Only legal if get_type() is TYPE_INTEGER.
include/sajson.h:587
↓ 13 callers
Method
length
include/sajson.h:254
↓ 12 callers
Method
get_number_value
Returns a numeric value as a double-precision float. Only legal if get_type() is TYPE_INTEGER or TYPE_DOUBLE.
include/sajson.h:601
↓ 11 callers
Method
ReportFailure
third-party/UnitTest++/src/tests/RecordingReporter.h:45
↓ 11 callers
Method
Run
third-party/UnitTest++/src/Test.cpp:32
↓ 11 callers
Method
data
include/sajson.h:252
↓ 11 callers
Method
get_data
include/sajson.h:220
↓ 9 callers
Method
as_string
Returns a string's value as a std::string. Only legal if get_type() is TYPE_STRING.
include/sajson.h:666
↓ 9 callers
Function
unwrap
swift/sajson/sajson-ffi.cpp:10
↓ 8 callers
Function
CheckClose
third-party/UnitTest++/src/Checks.h:45
↓ 8 callers
Function
CheckEqual
third-party/UnitTest++/src/Checks.h:19
↓ 8 callers
Method
ReportSummary
third-party/UnitTest++/src/tests/RecordingReporter.h:67
↓ 8 callers
Function
ThrowingFunction
third-party/UnitTest++/src/tests/TestCheckMacros.cpp:65
↓ 8 callers
Method
get_int53_value
Returns true and writes to the output argument if the numeric value fits in a 53-bit integer. This is useful for timestamps and other situations wher
include/sajson.h:617
↓ 7 callers
Function
FormatToStream
third-party/UnitTest++/src/MemoryOutStream.cpp:29
↓ 7 callers
Method
OnTestStart
third-party/UnitTest++/src/TestResults.cpp:17
↓ 7 callers
Method
ReportTestFinish
third-party/UnitTest++/src/tests/RecordingReporter.h:57
↓ 7 callers
Method
find_object_key
Given a string key, returns the index of the associated value if one exists. Returns get_length() if there is no such key. Note: sajson sorts object
include/sajson.h:562
↓ 7 callers
Method
get_string_length
Returns the length of the string. Only legal if get_type() is TYPE_STRING.
include/sajson.h:647
↓ 7 callers
Method
get_value_of_key
Given a string key, returns the value with that key or a null value if the key is not found. Running time is O(lg N). Only legal if get_type() is TYP
include/sajson.h:548
↓ 7 callers
Function
make_element
include/sajson.h:131
↓ 6 callers
Method
as_cstring
Returns a pointer to the beginning of a string value's data. WARNING: Calling this function and using the return value as a C-style string (that is, w
include/sajson.h:658
↓ 6 callers
Method
get_object_value
Returns the nth value of an object. Calling with an out-of-bound index is undefined behavior. Only legal if get_type() is TYPE_OBJECT.
include/sajson.h:535
↓ 6 callers
Method
reserve
include/sajson.h:1075
↓ 5 callers
Method
GetFailedTestCount
third-party/UnitTest++/src/TestResults.cpp:49
↓ 5 callers
Function
ReplaceChar
third-party/UnitTest++/src/XmlTestReporter.cpp:14
↓ 5 callers
Function
ReportAssert
third-party/UnitTest++/src/ReportAssert.cpp:5
↓ 5 callers
Function
get_element_tag
include/sajson.h:125
↓ 5 callers
Function
get_element_value
include/sajson.h:129
↓ 5 callers
Function
is_plain_string_character
include/sajson.h:168
↓ 5 callers
Method
push
include/sajson.h:986
↓ 4 callers
Function
CheckStringsEqual
third-party/UnitTest++/src/Checks.cpp:8
↓ 4 callers
Function
FunctionWithSideEffects
third-party/UnitTest++/src/tests/TestCheckMacros.cpp:188
↓ 4 callers
Method
OnTestFinish
third-party/UnitTest++/src/TestResults.cpp:38
↓ 4 callers
Method
get_error_message_as_cstring
If not is_valid(), returns a null-terminated C string indicating why the parse failed.
include/sajson.h:866
↓ 4 callers
Method
get_object_key
Returns the nth key of an object. Calling with an out-of-bound index is undefined behavior. Only legal if get_type() is TYPE_OBJECT.
include/sajson.h:527
↓ 3 callers
Function
CheckArray2DClose
third-party/UnitTest++/src/Checks.h:119
↓ 3 callers
Function
CheckArrayClose
third-party/UnitTest++/src/Checks.h:96
↓ 3 callers
Method
GetCapacity
third-party/UnitTest++/src/MemoryOutStream.cpp:123
↓ 3 callers
Method
GetTimeInMs
third-party/UnitTest++/src/Posix/TimeHelpers.cpp:18
↓ 3 callers
Method
GetTotalTestCount
third-party/UnitTest++/src/TestResults.cpp:44
↓ 3 callers
Method
Start
third-party/UnitTest++/src/Posix/TimeHelpers.cpp:12
↓ 3 callers
Method
get_error_message_as_string
If not is_valid(), returns a std::string indicating why the parse failed.
include/sajson.h:859
↓ 3 callers
Method
get_size
include/sajson.h:1007
↓ 3 callers
Method
what
third-party/UnitTest++/src/AssertException.cpp:19
↓ 2 callers
Function
AreClose
third-party/UnitTest++/src/Checks.h:39
↓ 2 callers
Function
ArrayAreClose
third-party/UnitTest++/src/Checks.h:87
↓ 2 callers
Function
CheckArrayEqual
third-party/UnitTest++/src/Checks.h:59
↓ 2 callers
Method
Filename
third-party/UnitTest++/src/AssertException.cpp:24
↓ 2 callers
Function
FunctionWithSideEffects2
third-party/UnitTest++/src/tests/TestCheckMacros.cpp:582
↓ 2 callers
Function
FunctionWithSideEffects3
third-party/UnitTest++/src/tests/TestCheckMacros.cpp:766
↓ 2 callers
Method
LineNumber
third-party/UnitTest++/src/AssertException.cpp:29
↓ 2 callers
Function
RunAllTests
third-party/UnitTest++/src/TestRunner.cpp:13
↓ 2 callers
Method
_internal_get_error_argument
WARNING: Internal function which is subject to change
include/sajson.h:876
↓ 2 callers
Method
can_grow
include/sajson.h:1323
↓ 2 callers
Function
findExtreme
(direction)
tools/genpow10.js:3
↓ 2 callers
Method
get_pointer_from_offset
include/sajson.h:1011
↓ 2 callers
Method
get_top
include/sajson.h:1009
↓ 2 callers
Method
get_write_pointer_of
include/sajson.h:1073
↓ 2 callers
Function
load
include/sajson.h:414
↓ 2 callers
Method
match
include/sajson.h:368
↓ 2 callers
Method
reset
include/sajson.h:1005
↓ 2 callers
Function
should_binary_search
* get_value_of_key for objects is O(lg N), but most objects have * small, bounded key sets, and the sort adds parsing overhead when a * linear scan
include/sajson.h:96
↓ 2 callers
Function
store
include/sajson.h:420
↓ 2 callers
Function
wrap
swift/sajson/sajson-ffi.cpp:14
↓ 1 callers
Function
BuildFailureMessage
third-party/UnitTest++/src/XmlTestReporter.cpp:33
↓ 1 callers
Function
CheckBool
third-party/UnitTest++/src/tests/TestUnitTest++.cpp:146
↓ 1 callers
Function
ExecuteTest
third-party/UnitTest++/src/ExecuteTest.h:16
↓ 1 callers
Function
Fail
third-party/UnitTest++/src/tests/TestTest.cpp:113
↓ 1 callers
Method
ReportFailure
third-party/UnitTest++/src/TestReporterStdout.cpp:8
↓ 1 callers
Method
ReportSummary
third-party/UnitTest++/src/XmlTestReporter.cpp:49
↓ 1 callers
Method
ReportTestFinish
third-party/UnitTest++/src/TestReporterStdout.cpp:24
↓ 1 callers
Method
ReportTestStart
third-party/UnitTest++/src/TestReporterStdout.cpp:20
↓ 1 callers
Function
RoundUpToMultipleOfPow2Number
third-party/UnitTest++/src/MemoryOutStream.cpp:38
↓ 1 callers
Method
RunImpl
third-party/UnitTest++/src/Test.cpp:37
↓ 1 callers
Function
XmlEscape
third-party/UnitTest++/src/XmlTestReporter.cpp:20
↓ 1 callers
Method
_internal_get_root
WARNING: Internal function exposed only for high-performance language bindings.
include/sajson.h:889
↓ 1 callers
Method
_internal_get_root_tag
WARNING: Internal function exposed only for high-performance language bindings.
include/sajson.h:885
↓ 1 callers
Method
get_ast_root
include/sajson.h:1081
↓ 1 callers
Method
get_document
include/sajson.h:1580
↓ 1 callers
Method
get_stack_head
include/sajson.h:1066
next →
1–100 of 327, ranked by callers