#include "utils/types.h"Classes | |
| struct | EmptyDeallocator< T > |
| struct | char_buffer_delete |
| struct | PdfOpCmpRc |
| struct | PdfOpCmpPt |
Typedefs | |
| typedef boost::shared_ptr< char > | CharBuffer |
Functions | |
| char * | char_buffer_new (size_t l) |
| template<class T , class U > | |
| bool | isBitSet (T value, U mask) |
| unsigned short | setNoneBitsShort () |
| template<class U > | |
| unsigned short | setNthBitsShort (U mask) |
| template<class U > | |
| unsigned short | setNthBitsShort (U mask, U mask1) |
| template<class U > | |
| unsigned short | setNthBitsShort (U mask, U mask1, U mask2) |
| template<class U > | |
| unsigned short | setNthBitsShort (U mask, U mask1, U mask2, U mask3) |
| template<class U > | |
| unsigned short | setNthBitsShort (U mask, U mask1, U mask2, U mask3, U mask4) |
| bool | nocase_compare (char c1, char c2) |
| typedef boost::shared_ptr<char> CharBuffer |
Special char buffer that can contain null characters.
Standard string class can also contain null characters but consider the following pitfall:
string nul = "\0"; char cnul = '\0'; str = "123"; str += nul; // "123" size: 3 str += cnul // "123\0" size: 4
| char* char_buffer_new | ( | size_t | l | ) | [inline] |
Char buffer alocator.
Referenced by pdfobjects::utils::streamToCharBuffer(), pdfobjects::utils::stringToCharBuffer(), and pdfobjects::utils::writeObject().
| bool isBitSet | ( | T | value, | |
| U | mask | |||
| ) | [inline] |
Is n-th bit set.
| value | Value to be checked. | |
| mask | N-th bit. |
| bool nocase_compare | ( | char | c1, | |
| char | c2 | |||
| ) | [inline] |
Case insensitive comparator.
Referenced by pdfobjects::utils::xpdfObjFromString().
| unsigned short setNoneBitsShort | ( | ) | [inline] |
Reset all bits.
| unsigned short setNthBitsShort | ( | U | mask, | |
| U | mask1, | |||
| U | mask2, | |||
| U | mask3, | |||
| U | mask4 | |||
| ) | [inline] |
References setNthBitsShort().
| unsigned short setNthBitsShort | ( | U | mask, | |
| U | mask1, | |||
| U | mask2, | |||
| U | mask3 | |||
| ) | [inline] |
References setNthBitsShort().
| unsigned short setNthBitsShort | ( | U | mask, | |
| U | mask1, | |||
| U | mask2 | |||
| ) | [inline] |
References setNthBitsShort().
| unsigned short setNthBitsShort | ( | U | mask, | |
| U | mask1 | |||
| ) | [inline] |
References setNthBitsShort().
| unsigned short setNthBitsShort | ( | U | mask | ) | [inline] |
Set n-th set.
| mask | N-th bit. |
Referenced by setNthBitsShort().