R/RcppExports.R

Defines functions .unsupportedArchitecture .cppVersion parseExample .validateJSON .check_int64 .diagnose_input .is_valid_query_arg .is_valid_json_arg fminify is_valid_utf8 is_valid_json .exceptions_enabled .load_json .deserialize_json

Documented in fminify is_valid_json is_valid_utf8 parseExample

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

.deserialize_json <- function(json, query = NULL, empty_array = NULL, empty_object = NULL, single_null = NULL, parse_error_ok = FALSE, on_parse_error = NULL, query_error_ok = FALSE, on_query_error = NULL, simplify_to = 0L, type_policy = 0L, int64_r_type = 0L) {
    .Call(`_RcppSimdJson_deserialize`, json, query, empty_array, empty_object, single_null, parse_error_ok, on_parse_error, query_error_ok, on_query_error, simplify_to, type_policy, int64_r_type)
}

.load_json <- function(json, query = NULL, empty_array = NULL, empty_object = NULL, single_null = NULL, parse_error_ok = FALSE, on_parse_error = NULL, query_error_ok = FALSE, on_query_error = NULL, simplify_to = 0L, type_policy = 0L, int64_r_type = 0L) {
    .Call(`_RcppSimdJson_load`, json, query, empty_array, empty_object, single_null, parse_error_ok, on_parse_error, query_error_ok, on_query_error, simplify_to, type_policy, int64_r_type)
}

.exceptions_enabled <- function() {
    .Call(`_RcppSimdJson_exceptions_enabled`)
}

#' @rdname simdjson-utilities
#' @export
is_valid_json <- function(json) {
    .Call(`_RcppSimdJson_dispatch_is_valid_json`, json)
}

#' @rdname simdjson-utilities
#' @export
is_valid_utf8 <- function(x) {
    .Call(`_RcppSimdJson_dispatch_is_valid_utf8`, x)
}

#' @rdname simdjson-utilities
#' @export
fminify <- function(json) {
    .Call(`_RcppSimdJson_dispatch_fminify`, json)
}

.is_valid_json_arg <- function(json) {
    .Call(`_RcppSimdJson_is_valid_json_arg`, json)
}

.is_valid_query_arg <- function(query) {
    .Call(`_RcppSimdJson_is_valid_query_arg`, query)
}

.diagnose_input <- function(x) {
    .Call(`_RcppSimdJson_diagnose_input`, x)
}

.check_int64 <- function() {
    .Call(`_RcppSimdJson_check_int64`)
}

.validateJSON <- function(filename) {
    .Call(`_RcppSimdJson_validateJSON`, filename)
}

#' Simple JSON Parsing Example
#'
#' This example is adapted from a blogpost announcing an earlier \sQuote{simdjson}
#' release. It is of interest mostly for the elegance and conciseness of its C++
#' code rather than for any functionality exported to R.
#'
#' The function takes no argument and returns nothing.
#'
#' @examples
#' parseExample()
parseExample <- function() {
    invisible(.Call(`_RcppSimdJson_parseExample`))
}

.cppVersion <- function() {
    .Call(`_RcppSimdJson_cppVersion`)
}

.unsupportedArchitecture <- function() {
    .Call(`_RcppSimdJson_unsupportedArchitecture`)
}

# Register entry points for exported C++ functions
methods::setLoadAction(function(ns) {
    .Call('_RcppSimdJson_RcppExport_registerCCallable', PACKAGE = 'RcppSimdJson')
})

Try the RcppSimdJson package in your browser

Any scripts or data that you put into this service are public.

RcppSimdJson documentation built on May 31, 2023, 5:31 p.m.