このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


class OUString
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: rtl ::

class OUString


Base Classes
非,不,無.
Known Derived Classes
非,不,無.

事実上の abstract interface template
NO NO NO NO
Description
This String class 供給する base functionality for C++ like Unicode character array 扱うing. The advantage of this class is, that it 扱う all the memory managament for you - and it do it more efficient. If you 割り当てる a string to another string, the data of both strings are 株d (without any copy 操作/手術 or memory 配分) as long as you do not change the string. This class 蓄える/店s also the length of the string, so that many 操作/手術s are faster as the C-str-機能(する)/行事s. This class 供給する only readonly string 扱うing. So you could create a string and you could only query the content from this string. It 供給する also functionality to change the string, but this results in every 事例/患者 in a new string instance (in the most 事例/患者s with an memory 配分). You don't have functionality to change the content of the string. If you want change the string content, than you should us the OStringBuffer class, which 供給する these functionality and 避ける to much memory 配分. The design of this class is 類似の to the string classes in Java and so more people should have より小数の understanding problems when they use this class.
とじ込み/提出する
ustring.hxx

Public Members

Methods


OUString( ) throw( );
New string 含む/封じ込めるing no characters.

OUString( const OUString & str ) throw( );
New string from OUString.

OUString( rtl_uString * str ) throw( );
New string from OUString data.

OUString( rtl_uString * str, __sal_NoAcquire ) throw( );
New OUString from OUString data without acquiring it. 引き継ぎ/買収 of 所有権.
explicit
OUString( sal_Unicode value ) throw( );
New string from a 選び出す/独身 Unicode character.

OUString( const sal_Unicode * value ) throw( );
New string from a Unicode character 衝撃を和らげるもの array.

OUString( const sal_Unicode * value, sal_Int32 length ) throw( );
New string from a Uniocde character 衝撃を和らげるもの array.

OUString( const sal_Char * value, sal_Int32 length, rtl_TextEncoding encoding, sal_uInt32 convertFlags = OSTRING_TO_OUSTRING_CVTFLAGS );
New string from a 8-Bit character 衝撃を和らげるもの array.
explicit
OUString( const sal_uInt32 * codePoints, sal_Int32 codePointCount );
Create a new string from an array of Unicode code points.

~OUString( ) throw( );
解放(する) the string data.
OUString &
操作者=( const OUString & str ) throw( );
割り当てる a new string.
OUString &
操作者+=( const OUString & str ) throw( );
Append a string to this string.
sal_Int32
getLength( ) const throw( );
Returns the length of this string.

操作者 const sal_Unicode *( ) const throw( );
Returns a pointer to the Unicode character 衝撃を和らげるもの from this string.
const sal_Unicode *
getStr( ) const throw( );
Returns a pointer to the Unicode character 衝撃を和らげるもの from this string.
sal_Int32
compareTo( const OUString & str ) const throw( );
Compares two strings.
sal_Int32
compareTo( const OUString & str, sal_Int32 maxLength ) const throw( );
Compares two strings with an 最大限 count of characters.
sal_Int32
reverseCompareTo( const OUString & str ) const throw( );
Compares two strings in 逆転する order.
sal_Bool
equals( const OUString & str ) const throw( );
成し遂げる a comparison of two strings.
sal_Bool
equalsIgnoreAsciiCase( const OUString & str ) const throw( );
成し遂げる a ASCII lowercase comparison of two strings.
sal_Bool
match( const OUString & str, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string.
sal_Bool
matchIgnoreAsciiCase( const OUString & str, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string, ignoring the 事例/患者 of ASCII letters.
sal_Int32
compareToAscii( const sal_Char * asciiStr ) const throw( );
Compares two strings.
sal_Int32
compareToAscii( const sal_Char * asciiStr, sal_Int32 maxLength ) const throw( );
Compares two strings with an 最大限 count of characters.
sal_Int32
reverseCompareToAsciiL( const sal_Char * asciiStr, sal_Int32 asciiStrLength ) const throw( );
Compares two strings in 逆転する order.
sal_Bool
equalsAscii( const sal_Char * asciiStr ) const throw( );
成し遂げる a comparison of two strings.
sal_Bool
equalsAsciiL( const sal_Char * asciiStr, sal_Int32 asciiStrLength ) const throw( );
成し遂げる a comparison of two strings.
sal_Bool
equalsIgnoreAsciiCaseAscii( const sal_Char * asciiStr ) const throw( );
成し遂げる a ASCII lowercase comparison of two strings.
sal_Bool
equalsIgnoreAsciiCaseAsciiL( const sal_Char * asciiStr, sal_Int32 asciiStrLength ) const throw( );
成し遂げる a ASCII lowercase comparison of two strings.
sal_Bool
matchAsciiL( const sal_Char * asciiStr, sal_Int32 asciiStrLength, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string.
sal_Bool
matchIgnoreAsciiCaseAsciiL( const sal_Char * asciiStr, sal_Int32 asciiStrLength, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string, ignoring the 事例/患者 of ASCII letters.
bool
endsWithAsciiL( const char * asciiStr, sal_Int32 asciiStrLength ) const;
Check whether this string ends with a given ASCII string.
bool
endsWithIgnoreAsciiCaseAsciiL( const char * asciiStr, sal_Int32 asciiStrLength ) const;
Check whether this string ends with a given ASCII string, ignoring the 事例/患者 of ASCII letters.
sal_Int32
hashCode( ) const throw( );
Returns a hashcode for this string.
sal_Int32
indexOf( sal_Unicode ch, sal_Int32 fromIndex = 0 ) const throw( );
Returns the 索引 within this string of the first occurrence of the 明示するd character, starting the search at the 明示するd 索引.
sal_Int32
lastIndexOf( sal_Unicode ch ) const throw( );
Returns the 索引 within this string of the last occurrence of the 明示するd character, searching backward starting at the end.
sal_Int32
lastIndexOf( sal_Unicode ch, sal_Int32 fromIndex ) const throw( );
sal_Int32
indexOf( const OUString & str, sal_Int32 fromIndex = 0 ) const throw( );
Returns the 索引 within this string of the first occurrence of the 明示するd substring, starting at the 明示するd 索引.
sal_Int32
indexOfAsciiL( const char * str, sal_Int32 len, sal_Int32 fromIndex = 0 ) const throw( );
Returns the 索引 within this string of the first occurrence of the 明示するd ASCII substring, starting at the 明示するd 索引.
sal_Int32
lastIndexOf( const OUString & str ) const throw( );
Returns the 索引 within this string of the last occurrence of the 明示するd substring, searching backward starting at the end.
sal_Int32
lastIndexOf( const OUString & str, sal_Int32 fromIndex ) const throw( );
sal_Int32
lastIndexOfAsciiL( const char * str, sal_Int32 len ) const throw( );
Returns the 索引 within this string of the last occurrence of the 明示するd ASCII substring.
OUString
copy( sal_Int32 beginIndex ) const throw( );
Returns a new string that is a substring of this string.
OUString
copy( sal_Int32 beginIndex, sal_Int32 count ) const throw( );
Returns a new string that is a substring of this string.
OUString
concat( const OUString & str ) const throw( );
Concatenates the 明示するd string to the end of this string.
OUString
replaceAt( sal_Int32 索引, sal_Int32 count, const OUString & newStr ) const throw( );
Returns a new string resulting from 取って代わるing n = count characters from position 索引 in this string with newStr.
OUString
取って代わる( sal_Unicode oldChar, sal_Unicode newChar ) const throw( );
Returns a new string resulting from 取って代わるing all occurrences of oldChar in this string with newChar.
OUString
toAsciiLowerCase( ) const throw( );
変えるs from this string all ASCII uppercase characters (65-90) to ASCII lowercase characters (97-122).
OUString
toAsciiUpperCase( ) const throw( );
変えるs from this string all ASCII lowercase characters (97-122) to ASCII uppercase characters (65-90).
OUString
削減する( ) const throw( );
Returns a new string resulting from 除去するing white space from both ends of the string.
OUString
getToken( sal_Int32 記念品, sal_Unicode cTok, sal_Int32 & 索引 ) const throw( );
Returns a 記念品 in the string.
sal_Bool
toBoolean( ) const throw( );
Returns the Boolean value from this string.
sal_Unicode
toChar( ) const throw( );
Returns the first character from this string.
sal_Int32
toInt32( sal_Int16 radix = 10 ) const throw( );
Returns the int32 value from this string.
sal_Int64
toInt64( sal_Int16 radix = 10 ) const throw( );
Returns the int64 value from this string.
float
toFloat( ) const throw( );
Returns the float value from this string.
二塁打
toDouble( ) const throw( );
Returns the 二塁打 value from this string.
OUString
抑留する( ) const;
Return a canonical 代表 for a string.
bool
convertToString( OString * pTarget, rtl_TextEncoding nEncoding, sal_uInt32 nFlags ) const;
変えるs to an OString, signalling 失敗.
sal_uInt32
iterateCodePoints( sal_Int32 * indexUtf16, sal_Int32 incrementCodePoints = 1 ) const;
Iterate through this string based on code points instead of UTF-16 code 部隊s.

Static Methods

static const OUString &
unacquired( rtl_uString * const * ppHandle );
static OUString
抑留する( const sal_Char * value, sal_Int32 length, rtl_TextEncoding encoding, sal_uInt32 convertFlags = OSTRING_TO_OUSTRING_CVTFLAGS, sal_uInt32 * pInfo = NULL );
Return a canonical 代表 for a 変えるd string.
static OUString
valueOf( sal_Bool b ) throw( );
Returns the string 代表 of the sal_Bool argument.
static OUString
valueOf( sal_Unicode c ) throw( );
Returns the string 代表 of the char argument.
static OUString
valueOf( sal_Int32 i, sal_Int16 radix = 10 ) throw( );
Returns the string 代表 of the int argument.
static OUString
valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) throw( );
Returns the string 代表 of the long argument.
static OUString
valueOf( float f ) throw( );
Returns the string 代表 of the float argument.
static OUString
valueOf( 二塁打 d ) throw( );
Returns the string 代表 of the 二塁打 argument.
static OUString
createFromAscii( const sal_Char * value ) throw( );
Returns a OUString copied without 転換 from an ASCII character string.

最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.