NMEStyle Class Reference
#include <NMEStyleCpp.h>
Detailed Description
NMEStyle parser class with separate text and style (objects can be used for multiple conversions, by changing input and/or output format before getting output again).
NMEStyleC is a C++ class wrapper for NME.h, NME.c, NMEStyle.h and NMEStyle.cpp. While class NME converts text with NME markup to some other text format, often with another markup such as HTML or RTF, class NMEStyle usually provides two separate outputs: plain text, and a table of style specifications with the location of the related text span.
Definition at line 51 of file NMEStyleCpp.h.
Constructor & Destructor Documentation
| NMEStyle::NMEStyle |
( |
char const * |
input, |
|
|
int |
inputLength = -1 | |
|
) |
| | [inline] |
Constructor with input.
- Parameters:
-
| [in] | input | address of input |
| [in] | inputLength | input length in bytes (if not specified, input is a null-terminated string) |
Definition at line 67 of file NMEStyleCpp.h.
| NMEStyle::NMEStyle |
( |
NMEStyle const & |
nme |
) |
[inline] |
Copy constructor.
- Parameters:
-
| [in] | nme | object to be copied |
Definition at line 75 of file NMEStyleCpp.h.
| NMEStyle::~NMEStyle |
( |
|
) |
[inline] |
Member Function Documentation
Copy operator.
- Parameters:
-
| [in] | nme | object to be copied |
- Returns:
- *this
Definition at line 106 of file NMEStyleCpp.h.
| void NMEStyle::setUnicodeStyleOffsets |
( |
bool |
unicodeStyleOffsets = true |
) |
[inline] |
Set style table offset mode.
- Parameters:
-
| [in] | unicodeStyleOffsets | true to have offsets in style table in UCS-16 (16-bit unicode), false to have offsets in bytes (UTF-8 or any other ASCII extension) |
Definition at line 136 of file NMEStyleCpp.h.
Get parser output, generating it if needed.
- Parameters:
-
| [out] | output | address of output (null-terminated) |
| [out] | outputLength | length of output in bytes, excluding null terminator (optional) |
Reimplemented from NME.
Definition at line 146 of file NMEStyleCpp.h.
Get style table.
- Returns:
- style table
Definition at line 192 of file NMEStyleCpp.h.
Handle a click in text, calling link handler if offset is located in a link.
- Parameters:
-
| [in] | offset | click location as a character offset in output text |
| [in] | handler | object whose click method is called if offset is in a link (can be NULL) |
- Returns:
- TRUE if offset is in a link, else FALSE
Definition at line 213 of file NMEStyleCpp.h.
The documentation for this class was generated from the following file: