100 static inline uint64_t
173 CNPrintToString(
struct CNResource * resource,
const char * format, ...) ;
static struct CNString * CNAddStrings(struct CNString *src0, struct CNString *src1)
Allocate added string.
Definition: CNString.h:149
static void CNRetainString(struct CNString *dst)
Retain CNString object.
Definition: CNString.h:69
static uint64_t CNHashValueOfString(const struct CNString *src)
Get hash value of source string.
Definition: CNString.h:101
struct CNString * CNAllocateEmptyString(struct CNResource *resource)
Allocate empty string.
List of pointers.
Definition: CNList.h:17
struct CNString * CNAllocateStringWithCString(size_t len, const unsigned char *str, struct CNResource *resource)
Allocate CNString object.
static size_t CNLengthOfString(const struct CNString *src)
Get length of the string.
Definition: CNString.h:90
Information to present memory profile.
Definition: CNMemoryProfile.h:16
CNBoolean CNIsSameStringAndCString(const struct CNString *src0, size_t len1, const unsigned char *src1)
Compare CNString and C-String.
Define CNList data structure.
Root object.
Definition: CNObject.h:38
static void CNReleaseString(struct CNString *dst)
Release CNString object.
Definition: CNString.h:79
CNBoolean CNIsSameStrings(const struct CNString *src0, const struct CNString *src1)
Compare CNStrings.
struct CNList elementList
List of CNStringElement.
Definition: CNString.h:36
struct CNObjectMethods superClass
Definition: CNString.h:21
Fixed size string class.
Definition: CNString.h:27
Define CNObject data structure.
void CNMoveStringToString(struct CNString *dst, struct CNString *src)
Move context of source string into destination.
struct CNString * CNCopyString(struct CNString *src)
Allocate the copy of string.
Methods for CNString.
Definition: CNString.h:18
void(* CNVisitStringElementFuncRef)(size_t elmlen, const unsigned char *elmstr, void *info)
Definition: CNString.h:40
struct CNMemoryProfile CNProfileOfString(const struct CNString *src)
Get memory profile of string.
struct CNString * CNPrintToString(struct CNResource *resource, const char *format,...)
Allocate string with printf format.
size_t length
Length of the string.
Definition: CNString.h:32
Methods for CNObject.
Definition: CNObject.h:29
void CNReleaseObject(struct CNObject *dst)
Release the object.
void CNAppendCStringToString(struct CNString *dst, size_t len, const unsigned char *src)
Append C-String to String.
static void CNRetainObject(struct CNObject *dst)
Retain the object.
Definition: CNObject.h:75
void CNAppendStringToString(struct CNString *dst, struct CNString *src)
Append context of source string into destination.
uint64_t hashValue
Hash value of the string.
Definition: CNString.h:34
struct CNObject superClass
Super class.
Definition: CNString.h:30
void CNPutStringToCString(unsigned char *dst, const struct CNString *src)
Put context of string into buffer.
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
static struct CNObject * CNObjectOfString(struct CNString *src)
Get super class of CNString.
Definition: CNString.h:112
void CNVisitStringElements(const struct CNString *src, CNVisitStringElementFuncRef func, void *info)
Visit all elements in the string.
void CNPrintString(FILE *fp, const struct CNString *src)
Put context of string into file stream.