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

template<typename Iterator >
void append (Iterator first, Iterator last)
void append (const string16_t &s)
void append (const boost::uint16_t *s)
void append (const boost::uint16_t *s, std::size_t length)
const_iterator begin () const
const boost::uint16_t * c_str () const
size_type capacity () const
void clear ()
bool empty () const
const_iterator end () const
 operator bool () 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 ()
 string16_t (const string16_t &s)
 string16_t (const boost::uint16_t *s, std::size_t length)
 string16_t (move_from< string16_t > x)
 string16_t (const boost::uint16_t *s)
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 500 of file string.hpp.


Member Typedef Documentation

typedef const boost::uint16_t* const_iterator

Definition at line 511 of file string.hpp.

typedef const boost::uint16_t* const_pointer

Definition at line 505 of file string.hpp.

typedef const boost::uint16_t& const_reference

Definition at line 507 of file string.hpp.

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

Definition at line 513 of file string.hpp.

typedef std::ptrdiff_t difference_type

Definition at line 509 of file string.hpp.

typedef boost::uint16_t* iterator

Definition at line 510 of file string.hpp.

typedef boost::uint16_t* pointer

Definition at line 504 of file string.hpp.

typedef boost::uint16_t& reference

Definition at line 506 of file string.hpp.

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

Definition at line 512 of file string.hpp.

typedef std::size_t size_type

Definition at line 508 of file string.hpp.

typedef boost::uint16_t value_type

Definition at line 503 of file string.hpp.


Constructor & Destructor Documentation

string16_t (  )

Constructs an empty string.

Definition at line 564 of file string.hpp.

string16_t ( const string16_t s )

Copy constructor.

Definition at line 569 of file string.hpp.

Move constructor.

Definition at line 574 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]snull-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]ssequence of 16-bit elements from which to construct the string16_t
[in]lengthnumber 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]firststart of sequence from which to construct the string16_t
[in]lastend of sequence from which to construct the string16_t

Definition at line 598 of file string.hpp.

~string16_t (  )

Destructor.

Definition at line 604 of file string.hpp.


Member Function Documentation

void append ( Iterator  first,
Iterator  last 
)

Appends a character sequence to the end of the string

Definition at line 627 of file string.hpp.

void append ( const string16_t s )

Appends another string this one

Definition at line 642 of file string.hpp.

void append ( const boost::uint16_t *  s )

Appends null-terminated character sequence to the string

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 653 of file string.hpp.

const_iterator begin (  ) const

Returns an iterator to the first element of the string.

Definition at line 671 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 709 of file string.hpp.

bool empty (  ) const

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

Definition at line 721 of file string.hpp.

const_iterator end (  ) const

Returns an iterator just past the end of the string.

Definition at line 677 of file string.hpp.

operator bool (  ) const

Returns true if the string is not empty, false otherwise.

Definition at line 727 of file string.hpp.

string16_t& operator+= ( const string16_t s )

Appends another string this one

Definition at line 659 of file string.hpp.

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

Appends null-terminated character sequence to the string

Definition at line 665 of file string.hpp.

string16_t& operator= ( string16_t  s )

Assignment operator.

Definition at line 609 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 683 of file string.hpp.

const_reverse_iterator rend (  ) const

Returns a reverse_iterator to the beginning of the current string.

Definition at line 689 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 703 of file string.hpp.

size_type size (  ) const

Returns the number of elements in the current string.

Definition at line 715 of file string.hpp.

void swap ( string16_t s )

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

Definition at line 732 of file string.hpp.


Friends And Related Function Documentation

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

Definition at line 740 of file string.hpp.

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

Definition at line 735 of file string.hpp.

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

Definition at line 745 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