xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
StringBuffer类 参考
StringBuffer 的协作图:
Collaboration graph

Public 成员函数

静态 Public 成员函数

成员变量

详细描述

StringBuffer类提供了一系列字符串操作的方法 包括字符串的创建、修改、查询、格式化等功能

在文件 StringBuffer.x5 行定义.

构造及析构函数说明

◆ StringBuffer() [1/9]

构造函数,创建一个空的StringBuffer对象

◆ StringBuffer() [2/9]

StringBuffer ( byte  [])

通过字节数组构造StringBuffer对象

参数
bytes初始字节数组

◆ StringBuffer() [3/9]

StringBuffer ( int  )

指定初始容量的构造函数

参数
capacity初始容量

◆ StringBuffer() [4/9]

StringBuffer ( byte  [],
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ StringBuffer() [5/9]

StringBuffer ( char  [],
bool   
)

◆ StringBuffer() [6/9]

StringBuffer ( char  [],
int  ,
int  ,
bool   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ StringBuffer() [7/9]

StringBuffer ( byte  [],
  String 
)

◆ StringBuffer() [8/9]

StringBuffer ( byte  [],
int  ,
int  ,
  String 
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ StringBuffer() [9/9]

成员函数说明

◆ append() [1/3]

StringBuffer append ( byte  [],
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ append() [2/3]

StringBuffer append ( char  [],
int  ,
int  ,
bool   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ append() [3/3]

StringBuffer append ( Object  )

◆ appendFill()

StringBuffer appendFill ( char  ,
int   
) throws IllegalArgumentException

◆ appendPath()

StringBuffer appendPath ( String  )

◆ capacity()

int capacity ( )

◆ char()

char ( int  ) throws IllegalArgumentException

◆ charAt()

char charAt ( int  )

◆ charset()

String charset ( )

◆ clear()

void clear ( )

◆ compare()

int compare ( String  )

◆ countChar()

int countChar ( char  )

◆ countString()

int countString ( String  )

◆ countStringIgnoreCase()

int countStringIgnoreCase ( String  )

◆ decodeURI()

StringBuffer decodeURI ( )

◆ encodeURI()

StringBuffer encodeURI ( bool  )

◆ endsWith()

bool endsWith ( String  )

◆ equals()

bool equals ( String  )

◆ equalsIgnoreCase()

bool equalsIgnoreCase ( String  )

◆ escape()

StringBuffer escape ( )

◆ finalize()

void finalize ( )

◆ find() [1/2]

int find ( String  )

◆ find() [2/2]

int find ( String  ,
int  ,
int   
) throws IllegalArgumentException

◆ findExtension()

String findExtension ( )

◆ findFilename()

String findFilename ( )

◆ findFilenameAndExtension()

String findFilenameAndExtension ( )

◆ findPathFilename()

String findPathFilename ( )

◆ findVolume()

String findVolume ( )

◆ findVolumePath()

String findVolumePath ( )

◆ formatPath()

static final StringBuffer formatPath ( bool  )
static

◆ getBytes() [1/2]

byte [] getBytes ( )

◆ getBytes() [2/2]

byte [] getBytes ( String  ) throws IllegalArgumentException

◆ indexOf() [1/4]

int indexOf ( char  )

◆ indexOf() [2/4]

int indexOf ( char  ,
int   
) throws IllegalArgumentException

◆ indexOf() [3/4]

int indexOf ( String  )

◆ indexOf() [4/4]

int indexOf ( String  ,
int   
) throws IllegalArgumentException

◆ indexOfIgnoreCase() [1/4]

int indexOfIgnoreCase ( char  )

◆ indexOfIgnoreCase() [2/4]

int indexOfIgnoreCase ( char  ,
int   
) throws IllegalArgumentException

◆ indexOfIgnoreCase() [3/4]

int indexOfIgnoreCase ( String  )

◆ indexOfIgnoreCase() [4/4]

int indexOfIgnoreCase ( String  ,
int   
) throws IllegalArgumentException

◆ insert() [1/2]

StringBuffer insert ( int  ,
char   
) throws IllegalArgumentException

◆ insert() [2/2]

StringBuffer insert ( int  ,
  String 
) throws IllegalArgumentException

◆ isBlank()

bool isBlank ( )

◆ isDigit()

bool isDigit ( )

◆ isDot()

bool isDot ( )

◆ lastIndexOf() [1/4]

int lastIndexOf ( char  )

◆ lastIndexOf() [2/4]

int lastIndexOf ( char  ,
int   
) throws IllegalArgumentException

◆ lastIndexOf() [3/4]

int lastIndexOf ( String  )

◆ lastIndexOf() [4/4]

int lastIndexOf ( String  ,
int   
) throws IllegalArgumentException

◆ lastIndexOfIgnoreCase() [1/4]

int lastIndexOfIgnoreCase ( char  )

◆ lastIndexOfIgnoreCase() [2/4]

int lastIndexOfIgnoreCase ( char  ,
int   
) throws IllegalArgumentException

◆ lastIndexOfIgnoreCase() [3/4]

int lastIndexOfIgnoreCase ( String  )

◆ lastIndexOfIgnoreCase() [4/4]

int lastIndexOfIgnoreCase ( String  ,
int   
) throws IllegalArgumentException

◆ length()

int length ( )

◆ lower()

StringBuffer lower ( )

◆ ltrim()

StringBuffer ltrim ( bool  )

◆ parseBool()

bool parseBool ( )

◆ parseDouble()

double parseDouble ( )

◆ parseFloat()

float parseFloat ( )

◆ parseHex()

long parseHex ( )

◆ parseInt()

int parseInt ( )

◆ parseLong()

long parseLong ( )

◆ removeExtension()

StringBuffer removeExtension ( )

◆ replace() [1/2]

StringBuffer replace ( int  ,
int  ,
  String 
) throws IllegalArgumentException

◆ replace() [2/2]

StringBuffer replace ( String  ,
  String 
)

◆ replaceExtension()

StringBuffer replaceExtension ( String  )

◆ replaceFilename()

StringBuffer replaceFilename ( String  )

◆ replaceFilenameAndExtension()

StringBuffer replaceFilenameAndExtension ( String  )

◆ resizeCapacity()

StringBuffer resizeCapacity ( int  )

◆ rtrim()

StringBuffer rtrim ( bool  )

◆ split() [1/2]

String [] split ( char  )

◆ split() [2/2]

String [] split ( String  )

◆ startsWith()

bool startsWith ( String  )

◆ substring() [1/2]

String substring ( int  ) throws IllegalArgumentException

◆ substring() [2/2]

String substring ( int  ,
int   
) throws IllegalArgumentException

◆ toAbsolutePath()

StringBuffer toAbsolutePath ( String  )

◆ toCharArray()

char [] toCharArray ( bool  )

◆ toRelativePath()

StringBuffer toRelativePath ( String  ,
bool  ,
bool   
)

◆ toString()

String toString ( )

◆ trim()

StringBuffer trim ( bool  )

◆ upper()

StringBuffer upper ( )

结构体成员变量说明

◆ StringBuffer

在文件 StringBuffer.x38 行定义.