Overview | Namespace | Class | 索引 | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
:: rtl ::
class OStringBuffer
- Base Classes
- 非,不,無.
- Known Derived Classes
- 非,不,無.
事実上の | abstract | interface | template |
NO | NO | NO | NO |
- Description
- A string 衝撃を和らげるもの 器具/実施するs a mutable sequence of characters.
String 衝撃を和らげるものs are 安全な for use by 多重の threads. The methods are synchronized where necessary so that all the 操作/手術s on any particular instance behave as if they occur in some serial order.
String 衝撃を和らげるものs are used by the compiler to 器具/実施する the binary string concatenation 操作者
+
. For example, the code:x = "a" + 4 + "c"
is 収集するd to the 同等(の) of:
x = new OStringBuffer().append("a").append(4).append("c") .toString()
The 主要な/長/主犯 操作/手術s on a
OStringBuffer
are theappend
and挿入する
methods, which are 積みすぎる so as to 受託する data of any type. Each 効果的に 変えるs a given datum to a string and then appends or 挿入するs the characters of that string to the string 衝撃を和らげるもの. Theappend
method always 追加するs these characters at the end of the 衝撃を和らげるもの; the挿入する
method 追加するs the characters at a 明示するd point.For example, if
z
言及するs to a string 衝撃を和らげるもの 反対する whose 現在の contents are "start
", then the method callz.append("le")
would 原因(となる) the string 衝撃を和らげるもの to 含む/封じ込める "startle
", 反してz.挿入する(4, "le")
would alter the string 衝撃を和らげるもの to 含む/封じ込める "starlet
".Every string 衝撃を和らげるもの has a capacity. As long as the length of the character sequence 含む/封じ込めるd in the string 衝撃を和らげるもの does not 越える the capacity, it is not necessary to 配分する a new 内部の 衝撃を和らげるもの array. If the 内部の 衝撃を和らげるもの 洪水s, it is automatically made larger.
- とじ込み/提出する
- strbuf.hxx
Public Members
-
Methods
OStringBuffer( );建設するs a string 衝撃を和らげるもの with no characters in it and an 初期の capacity of 16 characters.
OStringBuffer( const OStringBuffer & value );配分するs a new string 衝撃を和らげるもの that 含む/封じ込めるs the same sequence of characters as the string 衝撃を和らげるもの argument.
OStringBuffer( sal_Int32 length );建設するs a string 衝撃を和らげるもの with no characters in it and an 初期の capacity 明示するd by the <code>length</code> argument.
OStringBuffer( OString value );建設するs a string 衝撃を和らげるもの so that it 代表するs the same sequence of characters as the string argument. OStringBuffer &
操作者=( const OStringBuffer & value );割り当てる to this a copy of value.
~OStringBuffer( );解放(する) the string data. OString
makeStringAndClear( );Fill the string data in the new string and (疑いを)晴らす the 衝撃を和らげるもの. sal_Int32
getLength( ) const;Returns the length (character count) of this string 衝撃を和らげるもの. sal_Int32
getCapacity( ) const;Returns the 現在の capacity of the String 衝撃を和らげるもの. 無効の
ensureCapacity( sal_Int32 minimumCapacity );確実にするs that the capacity of the 衝撃を和らげるもの is at least equal to the 明示するd 最小限. 無効の
setLength( sal_Int32 newLength );始める,決めるs the length of this String 衝撃を和らげるもの. sal_Char
charAt( sal_Int32 索引 );Returns the character at a 明確な/細部 索引 in this string 衝撃を和らげるもの.
操作者 const sal_Char *( ) const;Return a null 終結させるd character array. const sal_Char *
getStr( ) const;Return a null 終結させるd character array. OStringBuffer &
setCharAt( sal_Int32 索引, sal_Char ch );The character at the 明示するd 索引 of this string 衝撃を和らげるもの is 始める,決める to <code>ch</code>. OStringBuffer &
append( const OString & str );Appends the string to this string 衝撃を和らげるもの. OStringBuffer &
append( const sal_Char * str );Appends the string 代表 of the <code>char</code> array argument to this string 衝撃を和らげるもの. OStringBuffer &
append( const sal_Char * str, sal_Int32 len );Appends the string 代表 of the <code>char</code> array argument to this string 衝撃を和らげるもの. OStringBuffer &
append( sal_Bool b );Appends the string 代表 of the <code>sal_Bool</code> argument to the string 衝撃を和らげるもの. OStringBuffer &
append( sal_Char c );Appends the string 代表 of the <code>char</code> argument to this string 衝撃を和らげるもの. OStringBuffer &
append( sal_Int32 i, sal_Int16 radix = 10 );Appends the string 代表 of the <code>sal_Int32</code> argument to this string 衝撃を和らげるもの. OStringBuffer &
append( sal_Int64 l, sal_Int16 radix = 10 );Appends the string 代表 of the <code>long</code> argument to this string 衝撃を和らげるもの. OStringBuffer &
append( float f );Appends the string 代表 of the <code>float</code> argument to this string 衝撃を和らげるもの. OStringBuffer &
append( 二塁打 d );Appends the string 代表 of the <code>二塁打</code> argument to this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, const OString & str );挿入するs the string into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, const sal_Char * str );挿入するs the string 代表 of the <code>char</code> array argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, const sal_Char * str, sal_Int32 len );挿入するs the string 代表 of the <code>char</code> array argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, sal_Bool b );挿入するs the string 代表 of the <code>sal_Bool</code> argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, sal_Char c );挿入するs the string 代表 of the <code>char</code> argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, sal_Int32 i, sal_Int16 radix = 10 );挿入するs the string 代表 of the second <code>sal_Int32</code> argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, sal_Int64 l, sal_Int16 radix = 10 );挿入するs the string 代表 of the <code>long</code> argument into this string 衝撃を和らげるもの. OStringBuffer
挿入する( sal_Int32 相殺する, float f );挿入するs the string 代表 of the <code>float</code> argument into this string 衝撃を和らげるもの. OStringBuffer &
挿入する( sal_Int32 相殺する, 二塁打 d );挿入するs the string 代表 of the <code>二塁打</code> argument into this string 衝撃を和らげるもの.
私的な Members
-
Data
rtl_String * pData; A pointer to the data structur which 含む/封じ込めるs the data. sal_Int32 nCapacity; The len of the pData->衝撃を和らげるもの.
Copyright © 2012, The Apache ソフトウェア 創立/基礎, Licensed under the Apache License, 見解/翻訳/版 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache ソフトウェア 創立/基礎. Other 指名するs may be trademarks of their 各々の owners.