stlab.adobe.com Adobe Systems Incorporated

string16_t Class Reference

#include <string.hpp>

List of all members.


Public Types

typedef const boost::uint16_t * const_iterator
typedef const boost::uint16_t * const_pointer
typedef const boost::uint16_t & const_reference
typedef std::reverse_iterator
< const boost::uint16_t * > 
const_reverse_iterator
typedef std::ptrdiff_t difference_type
typedef boost::uint16_t * iterator
typedef boost::uint16_t * pointer
typedef boost::uint16_t & reference
typedef std::reverse_iterator
< boost::uint16_t * > 
reverse_iterator
typedef std::size_t size_type
typedef boost::uint16_t value_type

Public Member Functions

void append (const boost::uint16_t *s, std::size_t length)
void append (const boost::uint16_t *s)
void append (const string16_t &s)
template<typename Iterator >
void append (Iterator first, Iterator last)
const_iterator begin () const
const boost::uint16_t * c_str () const
size_type capacity () const
void clear ()
bool empty () const
const_iterator end () const
string16_toperator+= (const boost::uint16_t *s)
string16_toperator+= (const string16_t &s)
string16_toperator= (string16_t s)
void push_back (value_type c)
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const
void reserve (size_type n)
size_type size () const
template<typename Iterator >
 string16_t (Iterator first, Iterator last)
 string16_t (const boost::uint16_t *s, std::size_t length)
 string16_t (const boost::uint16_t *s)
 string16_t (move_from< string16_t > x)
 string16_t (const string16_t &s)
 string16_t ()
void swap (string16_t &s)
 ~string16_t ()

Friends

bool operator< (const string16_t &x, const string16_t &y)
bool operator== (const string16_t &x, const string16_t &y)
void swap (string16_t &x, string16_t &y)

Detailed Description

Definition at line 493 of file string.hpp.


Member Typedef Documentation

typedef const boost::uint16_t* const_iterator

Definition at line 504 of file string.hpp.

typedef const boost::uint16_t* const_pointer

Definition at line 498 of file string.hpp.

typedef const boost::uint16_t& const_reference

Definition at line 500 of file string.hpp.

typedef std::reverse_iterator<const boost::uint16_t*> const_reverse_iterator

Definition at line 506 of file string.hpp.

typedef std::ptrdiff_t difference_type

Definition at line 502 of file string.hpp.

typedef boost::uint16_t* iterator

Definition at line 503 of file string.hpp.

typedef boost::uint16_t* pointer

Definition at line 497 of file string.hpp.

typedef boost::uint16_t& reference

Definition at line 499 of file string.hpp.

typedef std::reverse_iterator<boost::uint16_t*> reverse_iterator

Definition at line 505 of file string.hpp.

typedef std::size_t size_type

Definition at line 501 of file string.hpp.

typedef boost::uint16_t value_type

Definition at line 496 of file string.hpp.


Constructor & Destructor Documentation

string16_t (  ) 

Constructs an empty string.

Definition at line 555 of file string.hpp.

string16_t ( const string16_t s  ) 

Copy constructor.

Definition at line 560 of file string.hpp.

Move constructor.

Definition at line 565 of file string.hpp.

string16_t ( const boost::uint16_t *  s  ) 

Constructs a string16_t from a null-terminated sequence of 16-bit elements.

Parameters:
[in] s null-terminated sequence from which to construct the string16_t

string16_t ( const boost::uint16_t *  s,
std::size_t  length 
)

Constructs a string from a sequence of 16-bit elements.

Parameters:
[in] s sequence of 16-bit elements from which to construct the string16_t
[in] length number of elements from s from which to construct the string16_t

string16_t ( Iterator  first,
Iterator  last 
)

Constructs a string from a generic sequence.

Parameters:
[in] first start of sequence from which to construct the string16_t
[in] last end of sequence from which to construct the string16_t

Definition at line 589 of file string.hpp.

~string16_t (  ) 

Destructor.

Definition at line 595 of file string.hpp.


Member Function Documentation

void append ( const boost::uint16_t *  s,
std::size_t  length 
)

Appends a number of characters from a sequence to the string

Definition at line 644 of file string.hpp.

void append ( const boost::uint16_t *  s  ) 

Appends null-terminated character sequence to the string

void append ( const string16_t s  ) 

Appends another string this one

Definition at line 633 of file string.hpp.

void append ( Iterator  first,
Iterator  last 
)

Appends a character sequence to the end of the string

Definition at line 618 of file string.hpp.

const_iterator begin (  )  const

Returns an iterator to the first element of the string.

Definition at line 662 of file string.hpp.

const boost::uint16_t* c_str (  )  const

Returns const pointer to a null-terminated sequence of 16-bit elements, identical to the string16_t.

size_type capacity (  )  const

Returns the size of the allocated storage space for the elements of the string.

void clear (  ) 

Changes the string to be zero-length.

Definition at line 700 of file string.hpp.

bool empty (  )  const

Returns true if the string has no elements, false otherwise.

Definition at line 712 of file string.hpp.

const_iterator end (  )  const

Returns an iterator just past the end of the string.

Definition at line 668 of file string.hpp.

string16_t& operator+= ( const boost::uint16_t *  s  ) 

Appends null-terminated character sequence to the string

Definition at line 656 of file string.hpp.

string16_t& operator+= ( const string16_t s  ) 

Appends another string this one

Definition at line 650 of file string.hpp.

string16_t& operator= ( string16_t  s  ) 

Assignment operator.

Definition at line 600 of file string.hpp.

void push_back ( value_type  c  ) 

Appends one element to the end of the string.

const_reverse_iterator rbegin (  )  const

Returns a reverse_iterator to the end of the current string.

Definition at line 674 of file string.hpp.

const_reverse_iterator rend (  )  const

Returns a reverse_iterator to the beginning of the current string.

Definition at line 680 of file string.hpp.

void reserve ( size_type  n  ) 

Requests that the capacity of the allocated storage space for the elements of the string be at least enough to hold n elements.

Definition at line 694 of file string.hpp.

size_type size (  )  const

Returns the number of elements in the current string.

Definition at line 706 of file string.hpp.

void swap ( string16_t s  ) 

Exchanges the elements of the current string with those of from s.

Definition at line 718 of file string.hpp.


Friends And Related Function Documentation

bool operator< ( const string16_t x,
const string16_t y 
) [friend]

Definition at line 726 of file string.hpp.

bool operator== ( const string16_t x,
const string16_t y 
) [friend]

Definition at line 721 of file string.hpp.

void swap ( string16_t x,
string16_t y 
) [friend]

Definition at line 731 of file string.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google