#include <stdlib.h>
#include <string.h>
#include <string>
Go to the source code of this file.
Classes | |
struct | MCD_CSTR |
class | CMarkup |
struct | CMarkup::ElemPos |
struct | CMarkup::NodePos |
struct | CMarkup::TokenPos |
struct | CMarkup::SavedPos |
struct | CMarkup::SavedPosMap |
struct | CMarkup::SavedPosMapArray |
struct | CMarkup::PosArray |
struct | CMarkup::NodeStack |
struct | CMarkup::FilePos |
struct | CMarkup::ConvertEncoding |
Defines | |
#define | _MARKUP_H_INCLUDED_ |
#define | MARKUP_STL |
#define | MARKUP_SIZEOFWCHAR 2 |
#define | MARKUP_WINCONV |
#define | MCD_ACP 0 |
#define | MCD_UTF8 65001 |
#define | MCD_UTF16 1200 |
#define | MCD_UTF32 65005 |
#define | MCD_CHAR char |
#define | MCD_PCSZ const char* |
#define | MCD_PSZLEN (int)strlen |
#define | MCD_PSZCHR strchr |
#define | MCD_PSZSTR strstr |
#define | MCD_PSZTOL strtol |
#define | MCD_PSZNCMP strncmp |
#define | MCD_SSZ(sz) sz |
#define | MCD_PSZCPY strcpy |
#define | MCD_PSZNCPY strncpy |
#define | MCD_PSZCAT strcat |
#define | MCD_SPRINTF sprintf |
#define | MCD_FOPEN(f, n, m) f=fopen(n,m) |
#define | MCD_T(s) s |
#define | MCD_ENC MCD_T("UTF-8") |
#define | MCD_CLEN(p) 1 |
#define | MCD_STRERROR strerror(errno) |
#define | MCD_STR std::string |
#define | MCD_2PCSZ(s) s.c_str() |
#define | MCD_STRLENGTH(s) (int)s.size() |
#define | MCD_STRCLEAR(s) s.erase() |
#define | MCD_STRISEMPTY(s) s.empty() |
#define | MCD_STRMID(s, n, l) s.substr(n,l) |
#define | MCD_STRASSIGN(s, p, n) s.assign(p,n) |
#define | MCD_STRCAPACITY(s) (int)s.capacity() |
#define | MCD_STRINSERTREPLACE(d, i, r, s) d.replace(i,r,s) |
#define | MCD_GETBUFFER(s, n) new MCD_CHAR[n+1]; s.reserve(n) |
#define | MCD_RELEASEBUFFER(s, p, n) s.assign(p,n); delete[]p |
#define | MCD_BLDRESERVE(s, n) s.reserve(n) |
#define | MCD_BLDCHECK(s, n, d) ; |
#define | MCD_BLDRELEASE(s) ; |
#define | MCD_BLDAPPENDN(s, p, n) s.append(p,n) |
#define | MCD_BLDAPPEND(s, p) s.append(p) |
#define | MCD_BLDAPPEND1(s, c) s+=(MCD_CHAR)(c) |
#define | MCD_STRTOINT(s) MCD_PSZTOL(MCD_2PCSZ(s),NULL,10) |
#define | MCD_CSTR_FILENAME MCD_CSTR |
#define | MCD_T_FILENAME MCD_T |
#define | MCD_PCSZ_FILENAME MCD_PCSZ |
#define | MARKUP_SETDEBUGSTATE |
#define _MARKUP_H_INCLUDED_ |
#define MARKUP_SETDEBUGSTATE |
Referenced by CMarkup::x_SetPos().
#define MARKUP_SIZEOFWCHAR 2 |
#define MARKUP_STL |
#define MARKUP_WINCONV |
#define MCD_2PCSZ | ( | s | ) | s.c_str() |
Referenced by MCD_CSTR::MCD_CSTR().
#define MCD_ACP 0 |
#define MCD_BLDAPPEND | ( | s, | |||
p | ) | s.append(p) |
#define MCD_BLDAPPEND1 | ( | s, | |||
c | ) | s+=(MCD_CHAR)(c) |
#define MCD_BLDAPPENDN | ( | s, | |||
p, | |||||
n | ) | s.append(p,n) |
#define MCD_BLDCHECK | ( | s, | |||
n, | |||||
d | ) | ; |
#define MCD_BLDRELEASE | ( | s | ) | ; |
#define MCD_BLDRESERVE | ( | s, | |||
n | ) | s.reserve(n) |
#define MCD_CHAR char |
Referenced by CMarkup::TokenPos::StrNIACmp(), and CMarkup::x_IntToStr().
#define MCD_CLEN | ( | p | ) | 1 |
#define MCD_CSTR_FILENAME MCD_CSTR |
#define MCD_ENC MCD_T("UTF-8") |
#define MCD_FOPEN | ( | f, | |||
n, | |||||
m | ) | f=fopen(n,m) |
#define MCD_GETBUFFER | ( | s, | |||
n | ) | new MCD_CHAR[n+1]; s.reserve(n) |
#define MCD_PCSZ const char* |
#define MCD_PCSZ_FILENAME MCD_PCSZ |
#define MCD_PSZCAT strcat |
#define MCD_PSZCHR strchr |
Referenced by CMarkup::TokenPos::Match().
#define MCD_PSZCPY strcpy |
#define MCD_PSZLEN (int)strlen |
#define MCD_PSZNCMP strncmp |
Referenced by CMarkup::TokenPos::Match().
#define MCD_PSZNCPY strncpy |
#define MCD_PSZSTR strstr |
#define MCD_PSZTOL strtol |
#define MCD_RELEASEBUFFER | ( | s, | |||
p, | |||||
n | ) | s.assign(p,n); delete[]p |
#define MCD_SPRINTF sprintf |
Referenced by CMarkup::x_IntToStr().
#define MCD_SSZ | ( | sz | ) | sz |
Referenced by CMarkup::x_IntToStr().
#define MCD_STR std::string |
Referenced by CMarkup::x_IntToStr().
#define MCD_STRASSIGN | ( | s, | |||
p, | |||||
n | ) | s.assign(p,n) |
#define MCD_STRCAPACITY | ( | s | ) | (int)s.capacity() |
#define MCD_STRCLEAR | ( | s | ) | s.erase() |
#define MCD_STRERROR strerror(errno) |
#define MCD_STRINSERTREPLACE | ( | d, | |||
i, | |||||
r, | |||||
s | ) | d.replace(i,r,s) |
#define MCD_STRISEMPTY | ( | s | ) | s.empty() |
#define MCD_STRLENGTH | ( | s | ) | (int)s.size() |
#define MCD_STRMID | ( | s, | |||
n, | |||||
l | ) | s.substr(n,l) |
#define MCD_STRTOINT | ( | s | ) | MCD_PSZTOL(MCD_2PCSZ(s),NULL,10) |
#define MCD_T | ( | s | ) | s |
Referenced by CMarkup::TokenPos::Match(), and CMarkup::x_IntToStr().
#define MCD_T_FILENAME MCD_T |
#define MCD_UTF16 1200 |
#define MCD_UTF32 65005 |
#define MCD_UTF8 65001 |