|
Coconut Framework
beta
|
#include "CNObject.h"#include "CNBuffer.h"#include "CNPool.h"#include "CNFixedString.h"#include "CNString.h"#include "CNForwarders.h"#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | CNText |
Functions | |
| struct CNText * | CNAllocateText (struct CNResource *resource) |
| Allocate CNText object. More... | |
| static struct CNResource * | CNResourceOfText (struct CNText *src) |
| Get resource for this text. More... | |
| static void | CNReleaseText (struct CNText *dst) |
| Release text object. More... | |
| void | CNPushSectionToText (struct CNText *dst, const unsigned char *beginstr, const unsigned char *endstr) |
| Allocate new section as a child of section. More... | |
| void | CNPopSectionFromText (struct CNText *dst) |
| Move to the parent section from current section. More... | |
| static void | CNPutUTF8StringToText (struct CNText *dst, size_t srclen, const unsigned char *srcstr) |
| Put string to text. More... | |
| static void | CNPutFixedStringToText (struct CNText *dst, const struct CNFixedString *src) |
| Put fixed string to text. More... | |
| void | CNPutStringToText (struct CNText *dst, const struct CNString *src) |
| Put string to text. More... | |
| void | CNPutSignedIntegerToText (struct CNText *dst, int64_t src) |
| Put signed integer to text. More... | |
| void | CNPutUnsignedIntegerToText (struct CNText *dst, uint64_t src) |
| Put unsigned integer to text. More... | |
| void | CNPutFloatToText (struct CNText *dst, double src) |
| Put floating point value to text. More... | |
| void | CNPutCharToText (struct CNText *dst, char src) |
| Put character value to text. More... | |
| void | CNFlushText (struct CNText *dst) |
| Flush the context of text buffer into text data. More... | |
| void | CNClearText (struct CNText *dst) |
| Make clean text buffer. More... | |
| void | CNPrintText (FILE *outfp, struct CNText *src) |
| Print text. More... | |
Define CNText class.
| struct CNText* CNAllocateText | ( | struct CNResource * | resource | ) |
|
static |
Get resource for this text.
| src | Source text |
References CNResourceOfObject(), and CNText::superClass.
|
inlinestatic |
Release text object.
| dst | Destination object |
References CNReleaseObject(), and CNText::superClass.
| void CNPushSectionToText | ( | struct CNText * | dst, |
| const unsigned char * | beginstr, | ||
| const unsigned char * | endstr | ||
| ) |
Allocate new section as a child of section.
| dst | Destination text |
| beginstr | Begging of the section |
| endstr | End of the section |
| void CNPopSectionFromText | ( | struct CNText * | dst | ) |
Move to the parent section from current section.
| dst | Destination text |
|
inlinestatic |
Put string to text.
| dst | Destination text |
| srclen | Length of source string |
| srcstr | Source string |
References CNPutBytesToBuffer(), and CNText::currentBuffer.
|
inlinestatic |
Put fixed string to text.
| dst | Destination text |
| src | Source string |
References CNContentOfFixedString(), CNLengthOfFixedString(), CNPutBytesToBuffer(), and CNText::currentBuffer.
Put string to text.
| dst | Destination text |
| src | Source value |
| void CNPutSignedIntegerToText | ( | struct CNText * | dst, |
| int64_t | src | ||
| ) |
Put signed integer to text.
| dst | Destination text |
| src | Source value |
| void CNPutUnsignedIntegerToText | ( | struct CNText * | dst, |
| uint64_t | src | ||
| ) |
Put unsigned integer to text.
| dst | Destination text |
| src | Source value |
| void CNPutFloatToText | ( | struct CNText * | dst, |
| double | src | ||
| ) |
Put floating point value to text.
| dst | Destination text |
| src | Source value |
| void CNPutCharToText | ( | struct CNText * | dst, |
| char | src | ||
| ) |
Put character value to text.
| dst | Destination text |
| src | Source value |
| void CNFlushText | ( | struct CNText * | dst | ) |
Flush the context of text buffer into text data.
| dst | Destination text |
| void CNClearText | ( | struct CNText * | dst | ) |
Make clean text buffer.
| dst | Destination text buffer |
| void CNPrintText | ( | FILE * | outfp, |
| struct CNText * | src | ||
| ) |
Print text.
| outfp | Output file stream |
| src | Source text |
1.8.5