Function get_string_length

Synopsis

#include <include/sajson.h>

size_t get_string_length() const

Description

Returns the length of the string. Only legal if get_type() is TYPE_STRING.

Mentioned in

Source

Lines 647-650 in include/sajson.h.

size_t get_string_length() const {
    assert_tag(tag::string);
    return payload[1] - payload[0];
}





Add Discussion as Guest

Log in