GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Pango::ScriptIter Class Reference

A PangoScriptIter C++ wrapper class. More...

#include <gfc/pango/script.hh>

List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A PangoScriptIter C++ wrapper class.

ScriptIter is used to iterate through a string and identify ranges in different scripts.


Constructor & Destructor Documentation

GFC::Pango::ScriptIter::ScriptIter (  const char *  text,
int  length = -1
)  [explicit]
 

Construct a new script iterator, used to break a string of Unicode into runs by text.

Parameters:
text A UTF-8 string.
length The length of text, or -1 if text is null-terminated.

No copy is made of text, so the caller needs to make sure it remains valid until the iterator is destroyed. The newly created script iterator, initialized to point at the first range in the text. If the string is empty, it will point at an empty range.

GFC::Pango::ScriptIter::ScriptIter (  const String &  text  )  [explicit]
 

Construct a new script iterator, used to break a string of Unicode into runs by text.

Parameters:
text A String.

No copy is made of text, so the caller needs to make sure it remains valid until the iterator is destroyed. The newly created script iterator, initialized to point at the first range in the text. If the string is empty, it will point at an empty range.


Member Function Documentation

Script GFC::Pango::ScriptIter::get_range (  String *  range = 0  ) 
 

Gets information about the range to which the iterator currently points.

Parameters:
range The location to store the characters of the range, or null.
Returns:
The script for range.

Script GFC::Pango::ScriptIter::get_range (  const char **  start,
const char **  end
) 
 

Gets information about the range to which the iterator currently points.

Parameters:
start The location to store the start position of the range, or null.
end The location to store end position of the range, or null.
Returns:
The script for range.

The range is the set of locations p where *start <= p < *end. (That is, it doesn't include the character stored at *end).

bool GFC::Pango::ScriptIter::next (   ) 
 

Advances a script iterator to the next range.

Returns:
true if the iter was succesfully advanced.

If the iter is already at the end, it is left unchanged and false is returned.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:46 2004 for GFC-UI by doxygen 1.3.8