ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


basic_string.h

Includes:

Introduction

This is an internal header file, included by other library headers. You should not attempt to use it directly.



Classes

basic_string


Functions

operator
operator !=
operator !=(const _CharT *, const basic_string _CharT _Traits _Alloc &)
operator !=(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)
operator ==
operator ==(const _CharT *, const basic_string _CharT _Traits _Alloc &)
operator ==(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)
operator basic_string(_CharT, const basic_string _CharT _Traits _Alloc &)
operator basic_string(const _CharT *, const basic_string _CharT _Traits _Alloc &)
operator basic_string(const basic_string _CharT _Traits _Alloc &, const _CharT *)
operator basic_string(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)

operator


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator<(
        const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
        const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
First string.
rhs
Second string.
Return Value

True if @a lhs precedes @a rhs. False otherwise.

Discussion

@brief Test if string precedes string.


operator !=


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator!=(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const _CharT*__rhs) 
Parameters
lhs
String.
rhs
C string.
Return Value

True if @a lhs.compare(@a rhs) != 0. False otherwise.

Discussion

@brief Test difference of string and C string.


operator !=(const _CharT *, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator!=(
    const _CharT*__lhs, 
    const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
C string.
rhs
String.
Return Value

True if @a rhs.compare(@a lhs) != 0. False otherwise.

Discussion

@brief Test difference of C string and string.


operator !=(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator!=(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
First string.
rhs
Second string.
Return Value

True if @a lhs.compare(@a rhs) != 0. False otherwise.

Discussion

@brief Test difference of two strings.


operator ==


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator==(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const _CharT*__rhs) 
Parameters
lhs
String.
rhs
C string.
Return Value

True if @a lhs.compare(@a rhs) == 0. False otherwise.

Discussion

@brief Test equivalence of string and C string.


operator ==(const _CharT *, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator==(
    const _CharT*__lhs, 
    const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
C string.
rhs
String.
Return Value

True if @a rhs.compare(@a lhs) == 0. False otherwise.

Discussion

@brief Test equivalence of C string and string.


operator ==(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> inline bool operator==(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
First string.
rhs
Second string.
Return Value

True if @a lhs.compare(@a rhs) == 0. False otherwise.

Discussion

@brief Test equivalence of two strings.


operator basic_string(_CharT, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> basic_string<_CharT,_Traits,_Alloc> operator+(
    _CharT __lhs,
    const basic_string<_CharT,_Traits,_Alloc>& __rhs);  
Parameters
lhs
First string.
rhs
Last string.
Return Value

New string with @a lhs followed by @a rhs.

Discussion

@brief Concatenate character and string.


operator basic_string(const _CharT *, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> basic_string<_CharT,_Traits,_Alloc> operator+(
    const _CharT*__lhs, 
    const basic_string<_CharT,_Traits,_Alloc>& __rhs);  
Parameters
lhs
First string.
rhs
Last string.
Return Value

New string with value of @a lhs followed by @a rhs.

Discussion

@brief Concatenate C string and string.


operator basic_string(const basic_string _CharT _Traits _Alloc &, const _CharT *)


template<typename _CharT, typename _Traits, typename _Alloc> inline basic_string<_CharT, _Traits, _Alloc> operator+(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const _CharT*__rhs) 
Parameters
lhs
First string.
rhs
Last string.
Return Value

New string with @a lhs followed by @a rhs.

Discussion

@brief Concatenate string and C string.


operator basic_string(const basic_string _CharT _Traits _Alloc &, const basic_string _CharT _Traits _Alloc &)


template<typename _CharT, typename _Traits, typename _Alloc> basic_string<_CharT, _Traits, _Alloc> operator+(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs, 
    const basic_string<_CharT, _Traits, _Alloc>& __rhs) 
Parameters
lhs
First string.
rhs
Last string.
Return Value

New string with value of @a lhs followed by @a rhs.

Discussion

@brief Concatenate two strings.

Typedefs


basic_string


template<typename _CharT, typename _Traits, typename _Alloc> inline basic_string<_CharT, _Traits, _Alloc> operator+(
    const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    _CharT __rhs) 
Discussion

@brief Concatenate string and character.

Last Updated: 2006-06-20