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

翻訳前ページへ


class OString
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: rtl ::

class OString


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

事実上の abstract interface template
NO NO NO NO
Description
This String class 供給する base functionality for C++ like 8-Bit 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.
とじ込み/提出する
string.hxx

Public Members

Methods


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

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

OString( rtl_String * str ) throw( );
New string from OString data.
explicit
OString( sal_Char value ) throw( );
New string from a 選び出す/独身 character.

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

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

OString( const sal_Unicode * value, sal_Int32 length, rtl_TextEncoding encoding, sal_uInt32 convertFlags = OUSTRING_TO_OSTRING_CVTFLAGS );
New string from a Unicode character 衝撃を和らげるもの array.

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

操作者 const sal_Char *( ) const throw( );
Returns a pointer to the characters of this string.
const sal_Char *
getStr( ) const throw( );
Returns a pointer to the characters of this string.
sal_Int32
compareTo( const OString & str ) const throw( );
Compares two strings.
sal_Int32
compareTo( const OString & rObj, sal_Int32 maxLength ) const throw( );
Compares two strings with an 最大限 count of characters.
sal_Int32
reverseCompareTo( const OString & str ) const throw( );
Compares two strings in 逆転する order.
sal_Bool
equals( const OString & str ) const throw( );
成し遂げる a comparison of two strings.
sal_Bool
equalsIgnoreAsciiCase( const OString & str ) const throw( );
成し遂げる a ASCII lowercase comparison of two strings.
sal_Bool
match( const OString & str, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string.
sal_Bool
matchIgnoreAsciiCase( const OString & str, sal_Int32 fromIndex = 0 ) const throw( );
Match against a substring appearing in this string, ignoring the 事例/患者 of ASCII letters.
sal_Int32
hashCode( ) const throw( );
Returns a hashcode for this string.
sal_Int32
indexOf( sal_Char 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_Char 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_Char ch, sal_Int32 fromIndex ) const throw( );
sal_Int32
indexOf( const OString & 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
lastIndexOf( const OString & 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 OString & str, sal_Int32 fromIndex ) const throw( );
OString
copy( sal_Int32 beginIndex ) const throw( );
Returns a new string that is a substring of this string.
OString
copy( sal_Int32 beginIndex, sal_Int32 count ) const throw( );
Returns a new string that is a substring of this string.
OString
concat( const OString & str ) const throw( );
Concatenates the 明示するd string to the end of this string.
OString
replaceAt( sal_Int32 索引, sal_Int32 count, const OString & newStr ) const throw( );
Returns a new string resulting from 取って代わるing n = count characters from position 索引 in this string with newStr.
OString
取って代わる( sal_Char oldChar, sal_Char newChar ) const throw( );
Returns a new string resulting from 取って代わるing all occurrences of oldChar in this string with newChar.
OString
toAsciiLowerCase( ) const throw( );
変えるs from this string all ASCII uppercase characters (65-90) to ASCII lowercase characters (97-122).
OString
toAsciiUpperCase( ) const throw( );
変えるs from this string all ASCII lowercase characters (97-122) to ASCII uppercase characters (65-90).
OString
削減する( ) const throw( );
Returns a new string resulting from 除去するing white space from both ends of the string.
OString
getToken( sal_Int32 記念品, sal_Char cTok, sal_Int32 & 索引 ) const throw( );
Returns a 記念品 in the string.
sal_Bool
toBoolean( ) const throw( );
Returns the Boolean value from this string.
sal_Char
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.

Static Methods

static OString
valueOf( sal_Bool b ) throw( );
Returns the string 代表 of the sal_Bool argument.
static OString
valueOf( sal_Char c ) throw( );
Returns the string 代表 of the char argument.
static OString
valueOf( sal_Int32 i, sal_Int16 radix = 10 ) throw( );
Returns the string 代表 of the int argument.
static OString
valueOf( sal_Int64 ll, sal_Int16 radix = 10 ) throw( );
Returns the string 代表 of the long argument.
static OString
valueOf( float f ) throw( );
Returns the string 代表 of the float argument.
static OString
valueOf( 二塁打 d ) throw( );
Returns the string 代表 of the 二塁打 argument.

最高の,を越す 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.