Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
RangeDescription Class Reference

This describes a sparse range of Unicode character codes for conversion that may be specified on the command line. More...

#include "rangeDescription.h"

Public Member Functions

void add_range (int from_code, int to_code)
 
void add_singleton (int code)
 
bool is_empty () const
 Returns true if there are no codes described in the range.
 
void output (std::ostream &out) const
 
bool parse_parameter (const std::string &param)
 Parses a string of comma- and hyphen-delimited unicode values, in decimal and/or hex, including possible bracket-delimited ASCII characters, as may have been passed on a command line.
 

Friends

class RangeIterator
 

Detailed Description

This describes a sparse range of Unicode character codes for conversion that may be specified on the command line.

Definition at line 24 of file rangeDescription.h.

Constructor & Destructor Documentation

◆ RangeDescription()

RangeDescription::RangeDescription ( )

Definition at line 23 of file rangeDescription.cxx.

Member Function Documentation

◆ add_range()

void RangeDescription::add_range ( int from_code,
int to_code )
inline

Definition at line 25 of file rangeDescription.I.

◆ add_singleton()

void RangeDescription::add_singleton ( int code)
inline

Definition at line 17 of file rangeDescription.I.

◆ is_empty()

bool RangeDescription::is_empty ( ) const
inline

Returns true if there are no codes described in the range.

Definition at line 33 of file rangeDescription.I.

◆ output()

void RangeDescription::output ( std::ostream & out) const

Definition at line 75 of file rangeDescription.cxx.

◆ parse_parameter()

bool RangeDescription::parse_parameter ( const std::string & param)

Parses a string of comma- and hyphen-delimited unicode values, in decimal and/or hex, including possible bracket-delimited ASCII characters, as may have been passed on a command line.

Returns true if the parameter is parsed correctly, false otherwise.

Definition at line 33 of file rangeDescription.cxx.

References trim().

Friends And Related Symbol Documentation

◆ RangeIterator

friend class RangeIterator
friend

Definition at line 53 of file rangeDescription.h.


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