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

PHTML Class Reference

#include <html.h>

Inheritance diagram for PHTML:

PStringStream PString

List of all members.


Detailed Description

This class describes a HyperText markup Language string as used by the World Wide Web and the PURL# and PHTTPSocket# class.

All of the standard stream I/O operators, manipulators etc will operate on the PString class.

Definition at line 134 of file html.h.


Construction

enum  ConversionType {
  Pascal, Basic, Literal, Signed,
  Unsigned, Decimal, Exponent, Printf,
  NumConversionTypes
}
static PString Empty ()

Concatenation operators

PString operator & (char ch, const PString &str)
PString operator & (const char *cstr, const PString &str)
PString operator+ (char c, const PString &str)
PString operator+ (const char *cstr, const PString &str)
PString operator & (char ch) const
PString operator & (const char *cstr) const
PString operator & (const PString &str) const
PStringoperator &= (char ch)
PStringoperator &= (const char *cstr)
PStringoperator &= (const PString &str)
PString operator+ (char ch) const
PString operator+ (const char *cstr) const
PString operator+ (const PString &str) const
PStringoperator+= (char ch)
PStringoperator+= (const char *cstr)
PStringoperator+= (const PString &str)

Conversion functions

PString psprintf (const char *cfmt,...)
PString pvsprintf (const PString &fmt, va_list args)
PString pvsprintf (const char *cfmt, va_list args)
PInt64 AsInt64 (unsigned base=10) const
long AsInteger (unsigned base=10) const
double AsReal () const
PWORDArray AsUCS2 () const
DWORD AsUnsigned (unsigned base=10) const
PUInt64 AsUnsigned64 (unsigned base=10) const
 operator const unsigned char * () const
PStringsprintf (const char *cfmt,...)
PString ToLiteral () const
PBYTEArray ToPascal () const
PStringvsprintf (const char *cfmt, va_list args)
PStringvsprintf (const PString &fmt, va_list args)

Public Types

enum  BorderCodes { NoBorder, Border }
enum  CheckedCodes { UnChecked, Checked }
enum  DisableCodes { Enabled, Disabled }
enum  ElementInSet {
  InHTML, InHead, InBody, InTitle,
  InHeading, InDivision, InPreFormat, InAnchor,
  InNote, InAddress, InBlockQuote, InCredit,
  InBold, InItalic, InTeleType, InUnderline,
  InStrikeThrough, InBig, InSmall, InSubscript,
  InSuperscript, InEmphasis, InCite, InStrong,
  InCode, InSample, InKeyboard, InVariable,
  InDefinition, InQuote, InAuthor, InPerson,
  InAcronym, InAbbrev, InInsertedText, InDeletedText,
  InList, InListHeading, InDefinitionTerm, InTable,
  InForm, InSelect, InTextArea, NumElementsInSet
}
enum  SelectionCodes { NotSelected, Selected }

Public Member Functions

void Clr (ElementInSet elmt)
BOOL Is (ElementInSet elmt) const
virtual PStringMakeEmpty ()
PHTMLoperator= (char ch)
PHTMLoperator= (const char *cstr)
PHTMLoperator= (const PString &str)
PHTMLoperator= (const PHTML &html)
 PHTML (const PString &str)
 PHTML (const char *cstr)
 PHTML (ElementInSet initialState=NumElementsInSet)
void Set (ElementInSet elmt)
void Toggle (ElementInSet elmt)
Overrides from class PObject
virtual PObjectClone () const
virtual Comparison Compare (const PObject &obj) const
virtual PINDEX HashFunction () const
virtual void PrintOn (ostream &strm) const
virtual void ReadFrom (istream &strm)
Search & replace functions
void Delete (PINDEX start, PINDEX len)
PINDEX Find (const char *cstr, PINDEX offset=0) const
PINDEX Find (const PString &str, PINDEX offset=0) const
PINDEX Find (char ch, PINDEX offset=0) const
PINDEX FindLast (const char *cstr, PINDEX offset=P_MAX_INDEX) const
PINDEX FindLast (const PString &str, PINDEX offset=P_MAX_INDEX) const
PINDEX FindLast (char ch, PINDEX offset=P_MAX_INDEX) const
PINDEX FindOneOf (const char *cset, PINDEX offset=0) const
PINDEX FindOneOf (const PString &set, PINDEX offset=0) const
BOOL FindRegEx (const PRegularExpression &regex, PINDEX &pos, PINDEX &len, PINDEX offset=0, PINDEX maxPos=P_MAX_INDEX) const
PINDEX FindRegEx (const PRegularExpression &regex, PINDEX offset=0) const
void Replace (const PString &target, const PString &subs, BOOL all=FALSE, PINDEX offset=0)
void Splice (const char *cstr, PINDEX pos, PINDEX len=0)
void Splice (const PString &str, PINDEX pos, PINDEX len=0)
Size/Length functions
PINLINE PINDEX GetLength () const
BOOL MakeMinimumSize ()
bool operator! () const
Overrides from class PContainer
virtual BOOL IsEmpty () const
virtual BOOL MakeUnique ()
virtual BOOL SetSize (PINDEX newSize)
Sub-string functions
PString Left (PINDEX len) const
PString LeftTrim () const
PStringArray Lines () const
PString Mid (PINDEX start, PINDEX len=P_MAX_INDEX) const
PString operator() (PINDEX start, PINDEX end) const
PString Right (PINDEX len) const
PString RightTrim () const
PStringArray Tokenise (const char *cseparators, BOOL onePerSeparator=TRUE) const
PStringArray Tokenise (const PString &separators, BOOL onePerSeparator=TRUE) const
PString ToLower () const
PString ToUpper () const
PString Trim () const
Comparison operators
Comparison NumCompare (const char *cstr, PINDEX count=P_MAX_INDEX, PINDEX offset=0) const
Comparison NumCompare (const PString &str, PINDEX count=P_MAX_INDEX, PINDEX offset=0) const
bool operator!= (const char *cstr) const
bool operator!= (const PObject &str) const
bool operator*= (const char *cstr) const
bool operator*= (const PString &str) const
bool operator< (const char *cstr) const
bool operator< (const PObject &str) const
bool operator<= (const char *cstr) const
bool operator<= (const PObject &str) const
bool operator== (const char *cstr) const
bool operator== (const PObject &str) const
bool operator> (const char *cstr) const
bool operator> (const PObject &str) const
bool operator>= (const char *cstr) const
bool operator>= (const PObject &str) const

Protected Member Functions

virtual void AssignContents (const PContainer &c)
virtual Comparison InternalCompare (PINDEX offset, PINDEX length, const char *cstr) const
virtual Comparison InternalCompare (PINDEX offset, char c) const
void InternalFromUCS2 (const WORD *ptr, PINDEX len)

Private Attributes

BYTE elementSet [NumElementsInSet/8+1]
ElementInSet initialElement
PINDEX tableNestLevel

Friends

class TableEnd
class TableStart

Classes

class  Abbrev
class  Acronym
class  Address
class  Author
class  Banner
class  Big
class  BlockQuote
class  Body
class  Bold
class  BreakLine
class  BulletList
class  CheckBox
class  Cite
class  Code
class  Credit
class  Definition
class  DefinitionItem
class  DefinitionList
class  DefinitionTerm
class  DeletedText
class  Division
class  Element
class  Emphasis
class  FieldElement
class  Form
class  FormField
class  Head
class  Heading
class  HiddenField
class  HotLink
class  HRule
class  HTML
class  Image
class  ImageElement
class  InputField
class  InputFile
class  InputImage
class  InputPassword
class  InputRange
class  InputScribble
class  InputText
class  InsertedText
class  Italic
class  Keyboard
class  ListHeading
class  ListItem
class  Note
class  Option
class  OrderedList
class  Paragraph
class  Person
class  PreFormat
class  Quote
class  RadioButton
class  ResetButton
class  Sample
class  Select
class  SetTab
class  SimpleList
class  Small
class  StrikeThrough
class  Strong
class  SubmitButton
class  Subscript
class  Superscript
class  Tab
class  TableData
class  TableEnd
class  TableHeader
class  TableRow
class  TableStart
class  Target
class  TeleType
class  TextArea
class  Title
class  Underline
class  Variable

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

Generated by  Doxygen 1.6.0   Back to index