Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

pdf_long PoDoFo::PdfString::GetCharacterLength (  ) const [inline]

Get the number of characters in the string.

This function returns the correct number of characters in the string for unicode and ansi strings. Always use this method if you want to know the number of characters in the string as GetLength() will returns the number of bytes used for unicode strings!

Returns:
the number of characters in the string

Definition at line 490 of file PdfString.h.

References GetLength(), GetUnicodeLength(), and IsUnicode().

Referenced by PoDoFo::PdfPainter::AddText(), PoDoFo::PdfDifferenceEncoding::ConvertToEncoding(), PoDoFo::PdfSimpleEncoding::ConvertToEncoding(), PoDoFo::PdfDifferenceEncoding::ConvertToUnicode(), PoDoFo::PdfPainter::DrawMultiLineText(), and PoDoFo::PdfPainter::DrawText().

{
    return this->IsUnicode() ? this->GetUnicodeLength() : this->GetLength();
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index