librevenge::RVNGString Class Reference documentation

Classes | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
librevenge::RVNGString Class Reference

UTF-8 string. More...

`#include <RVNGString.h>`

## Classes
class | Iter

## Public Member Functions
| RVNGString ()
| RVNGString (const RVNGString &other)
| RVNGString (const char *str)
| ~RVNGString ()
const char * | cstr () const
int | len () const
| Return the number of UTF-8 characters. More...
unsigned long | size () const
| Return the size in bytes of the data buffer. More...
bool | empty () const
void | sprintf (const char *format,...) REVENGE_ATTRIBUTE_PRINTF(2
void void | append (const RVNGString &s)
void | append (const char *s)
void | append (const char c)
void | appendEscapedXML (const RVNGString &s)
| Append the content of s as escaped XML. More...
void | appendEscapedXML (const char *s)
| Append the content of s as escaped XML. More...
void | clear ()
RVNGString & | operator= (const RVNGString &str)
RVNGString & | operator= (const char *s)
bool | operator== (const char *s) const
bool | operator== (const RVNGString &str) const
bool | operator!= (const char *s) const
bool | operator!= (const RVNGString &str) const
bool | operator< (const char *s) const
bool | operator< (const RVNGString &str) const
bool | operator<= (const char *s) const
bool | operator<= (const RVNGString &str) const
bool | operator>= (const char *s) const
bool | operator>= (const RVNGString &str) const
bool | operator> (const char *s) const
bool | operator> (const RVNGString &str) const

## Static Public Member Functions
static RVNGString | escapeXML (const RVNGString &s)
| Create a new string from s as escaped XML. More...
static RVNGString | escapeXML (const char *s)
| Create a new string from s as escaped XML. More...

## Private Attributes
RVNGStringImpl * | m_stringImpl

## Detailed Description

UTF-8 string.

## Constructor & Destructor Documentation

## ◆ RVNGString() [1/3]

librevenge::RVNGString::RVNGString | ( |  | ) |

## ◆ RVNGString() [2/3]

librevenge::RVNGString::RVNGString | ( | const RVNGString & | other | ) |

## ◆ RVNGString() [3/3]

librevenge::RVNGString::RVNGString | ( | const char * | str | ) |

## ◆ ~RVNGString()

librevenge::RVNGString::~RVNGString | ( |  | ) |

## Member Function Documentation

## ◆ append() [1/3]

void librevenge::RVNGString::append | ( | const RVNGString & | s | ) |

Referenced by librevenge::RVNGHTMLTextGenerator::endDocument(), librevenge::RVNGPropertyListVector::getPropString(), librevenge::RVNGPropertyList::getPropString(), librevenge::RVNGInchProperty::getStr(), librevenge::RVNGPercentProperty::getStr(), librevenge::RVNGPointProperty::getStr(), sprintf(), librevenge::RVNGSVGDrawingGenerator::startLayer(), and librevenge::RVNGSVGPresentationGenerator::startLayer().

## ◆ append() [2/3]

void librevenge::RVNGString::append | ( | const char * | s | ) |

## ◆ append() [3/3]

void librevenge::RVNGString::append | ( | const char | c | ) |

## ◆ appendEscapedXML() [1/2]

void librevenge::RVNGString::appendEscapedXML | ( | const RVNGString & | s | ) |

Append the content of s as escaped XML.

See also
  escapeXML(const RVNGString&)

Referenced by escapeXML(), librevenge::RVNGSVGDrawingGenerator::startLayer(), and librevenge::RVNGSVGPresentationGenerator::startLayer().

## ◆ appendEscapedXML() [2/2]

void librevenge::RVNGString::appendEscapedXML | ( | const char * | s | ) |

Append the content of s as escaped XML.

See also
  escapeXML(const char*)

## ◆ clear()

void librevenge::RVNGString::clear | ( |  | ) |

Referenced by librevenge::RVNGSVGDrawingGenerator::endMasterPage(), librevenge::RVNGSVGPresentationGenerator::endMasterSlide(), operator=(), and sprintf().

## ◆ cstr()

const char * librevenge::RVNGString::cstr | ( |  | ) | const

Referenced by librevenge::RVNGBinaryData::appendBase64Data(), appendEscapedXML(), librevenge::RVNGRawTextGenerator::defineCharacterStyle(), librevenge::RVNGRawPresentationGenerator::defineCharacterStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineCharacterStyle(), librevenge::RVNGRawDrawingGenerator::defineCharacterStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineChartStyle(), librevenge::RVNGRawPresentationGenerator::defineChartStyle(), librevenge::RVNGRawPresentationGenerator::defineEmbeddedFont(), librevenge::RVNGRawTextGenerator::defineEmbeddedFont(), librevenge::RVNGRawSpreadsheetGenerator::defineEmbeddedFont(), librevenge::RVNGRawDrawingGenerator::defineEmbeddedFont(), librevenge::RVNGRawTextGenerator::defineGraphicStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineGraphicStyle(), librevenge::RVNGRawTextGenerator::definePageStyle(), librevenge::RVNGRawSpreadsheetGenerator::definePageStyle(), librevenge::RVNGRawTextGenerator::defineParagraphStyle(), librevenge::RVNGRawPresentationGenerator::defineParagraphStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineParagraphStyle(), librevenge::RVNGRawDrawingGenerator::defineParagraphStyle(), librevenge::RVNGRawTextGenerator::defineSectionStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineSectionStyle(), librevenge::RVNGRawSpreadsheetGenerator::defineSheetNumberingStyle(), librevenge::PresentationSVG::doubleToString(), librevenge::DrawingSVG::doubleToString(), librevenge::RVNGRawPresentationGenerator::drawConnector(), librevenge::RVNGRawDrawingGenerator::drawConnector(), librevenge::RVNGRawTextGenerator::drawConnector(), librevenge::RVNGRawSpreadsheetGenerator::drawConnector(), librevenge::RVNGRawPresentationGenerator::drawEllipse(), librevenge::RVNGRawDrawingGenerator::drawEllipse(), librevenge::RVNGRawTextGenerator::drawEllipse(), librevenge::RVNGRawSpreadsheetGenerator::drawEllipse(), librevenge::RVNGRawPresentationGenerator::drawGraphicObject(), librevenge::RVNGRawDrawingGenerator::drawGraphicObject(), librevenge::RVNGRawPresentationGenerator::drawPath(), librevenge::RVNGRawDrawingGenerator::drawPath(), librevenge::RVNGRawTextGenerator::drawPath(), librevenge::RVNGRawSpreadsheetGenerator::drawPath(), librevenge::RVNGRawPresentationGenerator::drawPolygon(), librevenge::RVNGRawDrawingGenerator::drawPolygon(), librevenge::RVNGRawTextGenerator::drawPolygon(), librevenge::RVNGRawSpreadsheetGenerator::drawPolygon(), librevenge::RVNGRawPresentationGenerator::drawPolyline(), librevenge::RVNGRawDrawingGenerator::drawPolyline(), librevenge::RVNGRawTextGenerator::drawPolyline(), librevenge::RVNGRawSpreadsheetGenerator::drawPolyline(), librevenge::RVNGRawPresentationGenerator::drawRectangle(), librevenge::RVNGRawDrawingGenerator::drawRectangle(), librevenge::RVNGRawTextGenerator::drawRectangle(), librevenge::RVNGRawSpreadsheetGenerator::drawRectangle(), librevenge::RVNGSVGDrawingGenerator::endMasterPage(), librevenge::RVNGSVGPresentationGenerator::endMasterSlide(), librevenge::RVNGPropertyList::getPropString(), librevenge::RVNGRawPresentationGenerator::insertAnimation(), librevenge::RVNGRawTextGenerator::insertBinaryObject(), librevenge::RVNGRawSpreadsheetGenerator::insertBinaryObject(), librevenge::RVNGRawSpreadsheetGenerator::insertChartAxis(), librevenge::RVNGRawPresentationGenerator::insertChartAxis(), librevenge::RVNGRawPresentationGenerator::insertColorAnimation(), librevenge::RVNGRawDrawingGenerator::insertCoveredTableCell(), librevenge::RVNGRawPresentationGenerator::insertCoveredTableCell(), librevenge::RVNGRawTextGenerator::insertCoveredTableCell(), librevenge::RVNGRawSpreadsheetGenerator::insertCoveredTableCell(), librevenge::RVNGRawPresentationGenerator::insertEffect(), librevenge::RVNGRawTextGenerator::insertEquation(), librevenge::RVNGRawSpreadsheetGenerator::insertEquation(), librevenge::RVNGRawTextGenerator::insertField(), librevenge::RVNGRawPresentationGenerator::insertField(), librevenge::RVNGRawSpreadsheetGenerator::insertField(), librevenge::RVNGRawDrawingGenerator::insertField(), librevenge::RVNGRawPresentationGenerator::insertMotionAnimation(), librevenge::RVNGHTMLTextGenerator::insertText(), librevenge::RVNGTextTextGenerator::insertText(), librevenge::RVNGRawTextGenerator::insertText(), librevenge::RVNGSVGPresentationGenerator::insertText(), librevenge::RVNGTextPresentationGenerator::insertText(), librevenge::RVNGRawPresentationGenerator::insertText(), librevenge::RVNGTextDrawingGenerator::insertText(), librevenge::RVNGSVGDrawingGenerator::insertText(), librevenge::RVNGRawSpreadsheetGenerator::insertText(), librevenge::RVNGTextSpreadsheetGenerator::insertText(), librevenge::RVNGRawDrawingGenerator::insertText(), librevenge::RVNGCSVSpreadsheetGenerator::insertText(), librevenge::RVNGString::Iter::Iter(), librevenge::RVNGRawPresentationGenerator::openAnimationGroup(), librevenge::RVNGRawPresentationGenerator::openAnimationIteration(), librevenge::RVNGRawPresentationGenerator::openAnimationSequence(), librevenge::RVNGRawSpreadsheetGenerator::openChart(), librevenge::RVNGRawPresentationGenerator::openChart(), librevenge::RVNGRawSpreadsheetGenerator::openChartPlotArea(), librevenge::RVNGRawPresentationGenerator::openChartPlotArea(), librevenge::RVNGRawSpreadsheetGenerator::openChartSerie(), librevenge::RVNGRawPresentationGenerator::openChartSeries(), librevenge::RVNGRawSpreadsheetGenerator::openChartTextObject(), librevenge::RVNGRawPresentationGenerator::openChartTextObject(), librevenge::RVNGRawTextGenerator::openComment(), librevenge::RVNGRawSpreadsheetGenerator::openComment(), librevenge::RVNGTextTextGenerator::openEndnote(), librevenge::RVNGRawTextGenerator::openEndnote(), librevenge::RVNGRawSpreadsheetGenerator::openEndnote(), librevenge::RVNGRawTextGenerator::openFooter(), librevenge::RVNGRawSpreadsheetGenerator::openFooter(), librevenge::RVNGTextTextGenerator::openFootnote(), librevenge::RVNGRawTextGenerator::openFootnote(), librevenge::RVNGRawSpreadsheetGenerator::openFootnote(), librevenge::RVNGRawTextGenerator::openFrame(), librevenge::RVNGRawSpreadsheetGenerator::openFrame(), librevenge::RVNGRawPresentationGenerator::openGroup(), librevenge::RVNGSVGDrawingGenerator::openGroup(), librevenge::RVNGRawDrawingGenerator::openGroup(), librevenge::RVNGRawTextGenerator::openGroup(), librevenge::RVNGRawSpreadsheetGenerator::openGroup(), librevenge::RVNGRawTextGenerator::openHeader(), librevenge::RVNGRawSpreadsheetGenerator::openHeader(), librevenge::RVNGRawTextGenerator::openLink(), librevenge::RVNGHTMLTextGenerator::openLink(), librevenge::RVNGRawPresentationGenerator::openLink(), librevenge::RVNGRawSpreadsheetGenerator::openLink(), librevenge::RVNGRawDrawingGenerator::openLink(), librevenge::RVNGRawTextGenerator::openListElement(), librevenge::RVNGRawDrawingGenerator::openListElement(), librevenge::RVNGRawPresentationGenerator::openListElement(), librevenge::RVNGRawSpreadsheetGenerator::openListElement(), librevenge::RVNGRawTextGenerator::openOrderedListLevel(), librevenge::RVNGRawDrawingGenerator::openOrderedListLevel(), librevenge::RVNGRawPresentationGenerator::openOrderedListLevel(), librevenge::RVNGRawSpreadsheetGenerator::openOrderedListLevel(), librevenge::RVNGRawTextGenerator::openPageSpan(), librevenge::RVNGRawSpreadsheetGenerator::openPageSpan(), librevenge::RVNGRawTextGenerator::openParagraph(), librevenge::RVNGRawPresentationGenerator::openParagraph(), librevenge::RVNGRawSpreadsheetGenerator::openParagraph(), librevenge::RVNGRawDrawingGenerator::openParagraph(), librevenge::RVNGRawTextGenerator::openSection(), librevenge::RVNGRawSpreadsheetGenerator::openSection(), librevenge::RVNGRawSpreadsheetGenerator::openSheet(), librevenge::RVNGRawSpreadsheetGenerator::openSheetCell(), librevenge::RVNGRawSpreadsheetGenerator::openSheetRow(), librevenge::RVNGRawTextGenerator::openSpan(), librevenge::RVNGRawPresentationGenerator::openSpan(), librevenge::RVNGRawSpreadsheetGenerator::openSpan(), librevenge::RVNGRawDrawingGenerator::openSpan(), librevenge::RVNGRawTextGenerator::openTable(), librevenge::RVNGRawSpreadsheetGenerator::openTable(), librevenge::RVNGRawDrawingGenerator::openTableCell(), librevenge::RVNGRawPresentationGenerator::openTableCell(), librevenge::RVNGRawTextGenerator::openTableCell(), librevenge::RVNGRawSpreadsheetGenerator::openTableCell(), librevenge::RVNGRawDrawingGenerator::openTableRow(), librevenge::RVNGRawPresentationGenerator::openTableRow(), librevenge::RVNGRawTextGenerator::openTableRow(), librevenge::RVNGRawSpreadsheetGenerator::openTableRow(), librevenge::RVNGRawTextGenerator::openTextBox(), librevenge::RVNGRawSpreadsheetGenerator::openTextBox(), librevenge::RVNGRawTextGenerator::openUnorderedListLevel(), librevenge::RVNGRawDrawingGenerator::openUnorderedListLevel(), librevenge::RVNGRawPresentationGenerator::openUnorderedListLevel(), librevenge::RVNGRawSpreadsheetGenerator::openUnorderedListLevel(), librevenge::RVNGBinaryData::RVNGBinaryData(), librevenge::RVNGRawPresentationGenerator::setDocumentMetaData(), librevenge::RVNGRawSpreadsheetGenerator::setDocumentMetaData(), librevenge::RVNGRawTextGenerator::setDocumentMetaData(), librevenge::RVNGRawDrawingGenerator::setDocumentMetaData(), librevenge::RVNGCSVSpreadsheetGenerator::setDTFormats(), librevenge::RVNGRawPresentationGenerator::setSlideTransition(), librevenge::RVNGSVGPresentationGenerator::setStyle(), librevenge::RVNGRawPresentationGenerator::setStyle(), librevenge::RVNGRawDrawingGenerator::setStyle(), librevenge::RVNGSVGDrawingGeneratorPrivate::setStyle(), librevenge::RVNGRawPresentationGenerator::startComment(), librevenge::RVNGRawPresentationGenerator::startDocument(), librevenge::RVNGRawSpreadsheetGenerator::startDocument(), librevenge::RVNGRawTextGenerator::startDocument(), librevenge::RVNGRawDrawingGenerator::startDocument(), librevenge::RVNGRawPresentationGenerator::startEmbeddedGraphics(), librevenge::RVNGRawDrawingGenerator::startEmbeddedGraphics(), librevenge::RVNGRawPresentationGenerator::startLayer(), librevenge::RVNGSVGDrawingGenerator::startLayer(), librevenge::RVNGRawDrawingGenerator::startLayer(), librevenge::RVNGSVGPresentationGenerator::startLayer(), librevenge::RVNGRawDrawingGenerator::startMasterPage(), librevenge::RVNGRawPresentationGenerator::startMasterSlide(), librevenge::RVNGRawPresentationGenerator::startNotes(), librevenge::RVNGRawDrawingGenerator::startPage(), librevenge::RVNGRawPresentationGenerator::startSlide(), librevenge::RVNGRawDrawingGenerator::startTableObject(), librevenge::RVNGRawPresentationGenerator::startTableObject(), librevenge::RVNGRawPresentationGenerator::startTextObject(), librevenge::RVNGRawDrawingGenerator::startTextObject(), librevenge::PresentationSVG::stringToColour(), and librevenge::DrawingSVG::stringToColour().

## ◆ empty()

bool librevenge::RVNGString::empty | ( |  | ) | const

Referenced by librevenge::RVNGSVGDrawingGenerator::endMasterPage(), librevenge::RVNGSVGPresentationGenerator::endMasterSlide(), librevenge::RVNGSVGDrawingGenerator::startMasterPage(), and librevenge::RVNGSVGPresentationGenerator::startMasterSlide().

## ◆ escapeXML() [1/2]

RVNGString librevenge::RVNGString::escapeXML | ( | const RVNGString & | s | ) |
| static

Create a new string from s as escaped XML.

This function can be used instead of appendEscapedXML(const RVNGString&) in contexts where only a temporary string is needed.

See also
  appendEscapedXML(const RVNGString&)

Referenced by librevenge::RVNGHTMLTextGenerator::insertText(), librevenge::RVNGSVGPresentationGenerator::insertText(), librevenge::RVNGSVGDrawingGenerator::insertText(), and librevenge::RVNGHTMLTextGenerator::openLink().

## ◆ escapeXML() [2/2]

RVNGString librevenge::RVNGString::escapeXML | ( | const char * | s | ) |
| static

Create a new string from s as escaped XML.

This function can be used instead of appendEscapedXML(const char*) in contexts where only a temporary string is needed.

See also
  appendEscapedXML(const char*)

## ◆ len()

int librevenge::RVNGString::len | ( |  | ) | const

Return the number of UTF-8 characters.

See also
  size()

Referenced by librevenge::RVNGString::Iter::next(), and librevenge::RVNGSVGDrawingGeneratorPrivate::setStyle().

## ◆ operator!=() [1/2]

bool librevenge::RVNGString::operator!= | ( | const char * | s | ) | const
| inline

## ◆ operator!=() [2/2]

bool librevenge::RVNGString::operator!= | ( | const RVNGString & | str | ) | const
| inline

## ◆ operator<() [1/2]

bool librevenge::RVNGString::operator< | ( | const char * | s | ) | const

## ◆ operator<() [2/2]

bool librevenge::RVNGString::operator< | ( | const RVNGString & | str | ) | const

## ◆ operator<=() [1/2]

bool librevenge::RVNGString::operator<= | ( | const char * | s | ) | const
| inline

## ◆ operator<=() [2/2]

bool librevenge::RVNGString::operator<= | ( | const RVNGString & | str | ) | const
| inline

## ◆ operator=() [1/2]

RVNGString & librevenge::RVNGString::operator= | ( | const RVNGString & | str | ) |

## ◆ operator=() [2/2]

RVNGString & librevenge::RVNGString::operator= | ( | const char * | s | ) |

## ◆ operator==() [1/2]

bool librevenge::RVNGString::operator== | ( | const char * | s | ) | const

## ◆ operator==() [2/2]

bool librevenge::RVNGString::operator== | ( | const RVNGString & | str | ) | const

## ◆ operator>() [1/2]

bool librevenge::RVNGString::operator> | ( | const char * | s | ) | const
| inline

## ◆ operator>() [2/2]

bool librevenge::RVNGString::operator> | ( | const RVNGString & | str | ) | const
| inline

## ◆ operator>=() [1/2]

bool librevenge::RVNGString::operator>= | ( | const char * | s | ) | const
| inline

## ◆ operator>=() [2/2]

bool librevenge::RVNGString::operator>= | ( | const RVNGString & | str | ) | const
| inline

## ◆ size()

unsigned long librevenge::RVNGString::size | ( |  | ) | const

Return the size in bytes of the data buffer.

This is equivalent to `strlen(str.cstr())`

See also
  len()

Referenced by librevenge::RVNGBinaryData::appendBase64Data(), appendEscapedXML(), librevenge::RVNGCSVSpreadsheetGenerator::insertText(), and librevenge::RVNGBinaryData::RVNGBinaryData().

## ◆ sprintf()

void librevenge::RVNGString::sprintf | ( | const char * | format,
|  |  | ...
| ) |  |

Referenced by librevenge::RVNGIntProperty::getStr(), librevenge::RVNGTwipProperty::getStr(), librevenge::RVNGSVGDrawingGenerator::openGroup(), librevenge::RVNGSVGDrawingGenerator::startLayer(), and librevenge::RVNGSVGPresentationGenerator::startLayer().

## Member Data Documentation

## ◆ m_stringImpl

RVNGStringImpl* librevenge::RVNGString::m_stringImpl
| private

Referenced by append(), appendEscapedXML(), clear(), cstr(), empty(), librevenge::RVNGString::Iter::last(), len(), librevenge::RVNGString::Iter::next(), librevenge::RVNGString::Iter::operator()(), operator<(), operator=(), operator==(), RVNGString(), size(), librevenge::RVNGString::Iter::~Iter(), and ~RVNGString().

The documentation for this class was generated from the following files:

- RVNGString.h
- RVNGString.cpp