#include <JSONSharedString.h>
|
json_string::iterator | begin (void) |
|
json_string::iterator | end (void) |
|
json_string::const_iterator | begin (void) const |
|
json_string::const_iterator | end (void) const |
|
| json_shared_string (void) |
|
| json_shared_string (const json_string &str) |
|
| json_shared_string (const json_shared_string &str, size_t _offset, size_t _len) |
|
| json_shared_string (const json_shared_string &str, size_t _offset) |
|
| ~json_shared_string (void) |
|
bool | empty (void) const |
|
size_t | find (json_char ch, size_t pos=0) const |
|
json_char & | operator[] (size_t loc) |
|
json_char | operator[] (size_t loc) const |
|
void | clear () |
|
size_t | length () const |
|
const json_char * | c_str () const |
|
const json_char * | data () const |
|
bool | operator!= (const json_shared_string &other) const |
|
bool | operator== (const json_shared_string &other) const |
|
bool | operator== (const json_string &other) const |
|
json_string & | toString (void) const |
|
void | assign (const json_shared_string &other, size_t _offset, size_t _len) |
|
| json_shared_string (const json_shared_string &other) |
|
json_shared_string & | operator= (const json_shared_string &other) |
|
void | deref (void) |
|
size_t offset | PACKED (20) |
|
size_t len | PACKED (20) |
|
json_string::iterator | begin (void) |
|
json_string::iterator | end (void) |
|
json_string::const_iterator | begin (void) const |
|
json_string::const_iterator | end (void) const |
|
| json_shared_string (void) |
|
| json_shared_string (const json_string &str) |
|
| json_shared_string (const json_shared_string &str, size_t _offset, size_t _len) |
|
| json_shared_string (const json_shared_string &str, size_t _offset) |
|
| ~json_shared_string (void) |
|
bool | empty (void) const |
|
size_t | find (json_char ch, size_t pos=0) const |
|
json_char & | operator[] (size_t loc) |
|
json_char | operator[] (size_t loc) const |
|
void | clear () |
|
size_t | length () const |
|
const json_char * | c_str () const |
|
const json_char * | data () const |
|
bool | operator!= (const json_shared_string &other) const |
|
bool | operator== (const json_shared_string &other) const |
|
bool | operator== (const json_string &other) const |
|
json_string & | toString (void) const |
|
void | assign (const json_shared_string &other, size_t _offset, size_t _len) |
|
| json_shared_string (const json_shared_string &other) |
|
json_shared_string & | operator= (const json_shared_string &other) |
|
void | deref (void) |
|
size_t offset | PACKED (20) |
|
size_t len | PACKED (20) |
|
json_shared_string::json_shared_string |
( |
void |
| ) |
|
|
inline |
41 : offset(0), len(0),
_str(
new json_shared_string_internal(
json_global(EMPTY_JSON_STRING))) {}
#define json_global(NAME)
Definition: JSONGlobals.h:26
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::json_shared_string |
( |
const json_string & |
str | ) |
|
|
inline |
43 : offset(0), len(str.length()),
_str(
new json_shared_string_internal(str)) {}
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::json_shared_string |
( |
const json_shared_string & |
str, |
|
|
size_t |
_offset, |
|
|
size_t |
_len |
|
) |
| |
|
inline |
References _str.
45 :
_str(str.
_str), offset(str.offset + _offset), len(_len) {
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str.
49 :
_str(str.
_str), offset(str.offset + _offset), len(str.len - _offset) {
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::~json_shared_string |
( |
void |
| ) |
|
|
inline |
References deref().
void deref(void)
Definition: JSONSharedString.h:138
References _str.
118 :
_str(other.
_str), offset(other.offset), len(other.len){
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::json_shared_string |
( |
void |
| ) |
|
|
inline |
41 : offset(0), len(0),
_str(
new json_shared_string_internal(
json_global(EMPTY_JSON_STRING))) {}
#define json_global(NAME)
Definition: JSONGlobals.h:26
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::json_shared_string |
( |
const json_string & |
str | ) |
|
|
inline |
43 : offset(0), len(str.length()),
_str(
new json_shared_string_internal(str)) {}
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::json_shared_string |
( |
const json_shared_string & |
str, |
|
|
size_t |
_offset, |
|
|
size_t |
_len |
|
) |
| |
|
inline |
References _str.
45 :
_str(str.
_str), offset(str.offset + _offset), len(_len) {
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str.
49 :
_str(str.
_str), offset(str.offset + _offset), len(str.len - _offset) {
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_shared_string::~json_shared_string |
( |
void |
| ) |
|
|
inline |
References deref().
void deref(void)
Definition: JSONSharedString.h:138
References _str.
118 :
_str(other.
_str), offset(other.offset), len(other.len){
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
void json_shared_string::assign |
( |
const json_shared_string & |
other, |
|
|
size_t |
_offset, |
|
|
size_t |
_len |
|
) |
| |
|
inline |
References _str, and deref().
114 offset = other.offset + _offset;
void deref(void)
Definition: JSONSharedString.h:138
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
void json_shared_string::assign |
( |
const json_shared_string & |
other, |
|
|
size_t |
_offset, |
|
|
size_t |
_len |
|
) |
| |
|
inline |
References _str, and deref().
114 offset = other.offset + _offset;
void deref(void)
Definition: JSONSharedString.h:138
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_string::iterator json_shared_string::begin |
( |
void |
| ) |
|
|
inline |
References _str.
Referenced by end(), find(), and toString().
28 return _str -> mystring.begin() + offset;
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_string::iterator json_shared_string::begin |
( |
void |
| ) |
|
|
inline |
References _str.
28 return _str -> mystring.begin() + offset;
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_string::const_iterator json_shared_string::begin |
( |
void |
| ) |
const |
|
inline |
References _str.
35 return _str -> mystring.begin() + offset;
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_string::const_iterator json_shared_string::begin |
( |
void |
| ) |
const |
|
inline |
References _str.
35 return _str -> mystring.begin() + offset;
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
const json_char* json_shared_string::c_str |
( |
| ) |
const |
|
inline |
References toString().
json_string & toString(void) const
Definition: JSONSharedString.h:93
const json_char* json_shared_string::c_str |
( |
| ) |
const |
|
inline |
References toString().
json_string & toString(void) const
Definition: JSONSharedString.h:93
void json_shared_string::clear |
( |
void |
| ) |
|
|
inline |
void json_shared_string::clear |
( |
void |
| ) |
|
|
inline |
const json_char* json_shared_string::data |
( |
| ) |
const |
|
inline |
References _str.
77 {
return _str -> mystring.c_str() + offset; }
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
const json_char* json_shared_string::data |
( |
| ) |
const |
|
inline |
References _str.
77 {
return _str -> mystring.c_str() + offset; }
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
void json_shared_string::deref |
( |
void |
| ) |
|
|
inline |
void json_shared_string::deref |
( |
void |
| ) |
|
|
inline |
References _str.
139 if (--
_str -> refCount == 0){
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
bool json_shared_string::empty |
( |
void |
| ) |
const |
|
inline |
bool json_shared_string::empty |
( |
void |
| ) |
const |
|
inline |
json_string::iterator json_shared_string::end |
( |
void |
| ) |
|
|
inline |
References begin().
Referenced by find(), and toString().
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::iterator json_shared_string::end |
( |
void |
| ) |
|
|
inline |
References begin().
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::const_iterator json_shared_string::end |
( |
void |
| ) |
const |
|
inline |
References begin().
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::const_iterator json_shared_string::end |
( |
void |
| ) |
const |
|
inline |
References begin().
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
size_t json_shared_string::find |
( |
json_char |
ch, |
|
|
size_t |
pos = 0 |
|
) |
| const |
|
inline |
References _str, begin(), and end().
60 if (
_str -> refCount == 1)
return _str -> mystring.find(ch, pos);
61 json_string::const_iterator e =
end();
62 for(json_string::const_iterator b =
begin() + pos; b != e; ++b){
63 if (*b == ch)
return b -
begin();
65 return json_string::npos;
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::iterator end(void)
Definition: JSONSharedString.h:30
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
size_t json_shared_string::find |
( |
json_char |
ch, |
|
|
size_t |
pos = 0 |
|
) |
| const |
|
inline |
References _str, begin(), and end().
60 if (
_str -> refCount == 1)
return _str -> mystring.find(ch, pos);
61 json_string::const_iterator e =
end();
62 for(json_string::const_iterator b =
begin() + pos; b != e; ++b){
63 if (*b == ch)
return b -
begin();
65 return json_string::npos;
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::iterator end(void)
Definition: JSONSharedString.h:30
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
size_t json_shared_string::length |
( |
| ) |
const |
|
inline |
size_t json_shared_string::length |
( |
| ) |
const |
|
inline |
References _str, and toString().
80 if ((other.
_str ==
_str) && (other.len == len) && (other.offset == offset))
return false;
json_string & toString(void) const
Definition: JSONSharedString.h:93
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str, and toString().
80 if ((other.
_str ==
_str) && (other.len == len) && (other.offset == offset))
return false;
json_string & toString(void) const
Definition: JSONSharedString.h:93
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str, and deref().
128 offset = other.offset;
void deref(void)
Definition: JSONSharedString.h:138
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str, and deref().
128 offset = other.offset;
void deref(void)
Definition: JSONSharedString.h:138
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str, and toString().
85 if ((other.
_str ==
_str) && (other.len == len) && (other.offset == offset))
return true;
json_string & toString(void) const
Definition: JSONSharedString.h:93
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
References _str, and toString().
85 if ((other.
_str ==
_str) && (other.len == len) && (other.offset == offset))
return true;
json_string & toString(void) const
Definition: JSONSharedString.h:93
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
bool json_shared_string::operator== |
( |
const json_string & |
other | ) |
const |
|
inline |
References toString().
json_string & toString(void) const
Definition: JSONSharedString.h:93
A struct that can be used to catch other (that is, not Blemish, OIS, or SFRplus) pass/fail categories...
Definition: PassFailSettings.h:192
bool json_shared_string::operator== |
( |
const json_string & |
other | ) |
const |
|
inline |
References toString().
json_string & toString(void) const
Definition: JSONSharedString.h:93
A struct that can be used to catch other (that is, not Blemish, OIS, or SFRplus) pass/fail categories...
Definition: PassFailSettings.h:192
json_char& json_shared_string::operator[] |
( |
size_t |
loc | ) |
|
|
inline |
References _str.
69 return _str -> mystring[loc + offset];
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_char& json_shared_string::operator[] |
( |
size_t |
loc | ) |
|
|
inline |
References _str.
69 return _str -> mystring[loc + offset];
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_char json_shared_string::operator[] |
( |
size_t |
loc | ) |
const |
|
inline |
References _str.
72 return _str -> mystring[loc + offset];
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_char json_shared_string::operator[] |
( |
size_t |
loc | ) |
const |
|
inline |
References _str.
72 return _str -> mystring[loc + offset];
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
size_t offset json_shared_string::PACKED |
( |
20 |
| ) |
|
|
mutable |
size_t offset json_shared_string::PACKED |
( |
20 |
| ) |
|
|
mutable |
size_t len json_shared_string::PACKED |
( |
20 |
| ) |
|
|
mutable |
size_t len json_shared_string::PACKED |
( |
20 |
| ) |
|
|
mutable |
json_string& json_shared_string::toString |
( |
void |
| ) |
const |
|
inline |
References _str, begin(), and end().
Referenced by c_str(), operator!=(), and operator==().
95 if (
_str -> refCount == 1){
96 if (offset || len !=
_str -> mystring.length()){
99 }
else if (offset || len !=
_str -> mystring.length()){
101 _str =
new json_shared_string_internal(json_string(
begin(),
end()));
104 return _str -> mystring;
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::iterator end(void)
Definition: JSONSharedString.h:30
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
json_string& json_shared_string::toString |
( |
void |
| ) |
const |
|
inline |
References _str, begin(), and end().
95 if (
_str -> refCount == 1){
96 if (offset || len !=
_str -> mystring.length()){
99 }
else if (offset || len !=
_str -> mystring.length()){
101 _str =
new json_shared_string_internal(json_string(
begin(),
end()));
104 return _str -> mystring;
json_string::iterator begin(void)
Definition: JSONSharedString.h:27
json_string::iterator end(void)
Definition: JSONSharedString.h:30
json_shared_string_internal * _str
Definition: JSONSharedString.h:143
Referenced by assign(), begin(), data(), deref(), find(), json_shared_string(), operator!=(), operator=(), operator==(), operator[](), and toString().
The documentation for this class was generated from the following file: