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

Public 成员函数

静态 Public 成员函数

成员变量

静态 Public 属性

详细描述

String类提供了一系列字符串操作方法,包括创建、查找、替换、转换等功能。 支持多种编码格式,提供路径处理、日期解析等高级功能。

在文件 String.x5 行定义.

构造及析构函数说明

◆ String() [1/8]

String ( byte  [])

通过字节数组构造字符串

参数
bytes字节数组

◆ String() [2/8]

String ( byte  [],
int  ,
int   
)

◆ String() [3/8]

String ( char  [],
bool   
)

◆ String() [4/8]

String ( char  [],
int  ,
int  ,
bool   
)

◆ String() [5/8]

String ( byte  [],
  String 
)

◆ String() [6/8]

String ( byte  [],
int  ,
int  ,
  String 
)

◆ String() [7/8]

String ( String  )

◆ String() [8/8]

String ( Object  )

成员函数说明

◆ append()

String append ( Object  )

◆ appendPath()

String appendPath ( String  )

被这些函数引用 FileInputStream.FileInputStream(), FileOutputStream.FileOutputStream() , 以及 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ byte()

byte ( int  ) throws IndexOutOfBoundsException

◆ charAt()

char charAt ( int  ) throws IllegalArgumentException

◆ charset()

String charset ( ) throws IllegalArgumentException

◆ compare()

int compare ( String  )

◆ countChar()

int countChar ( char  )

◆ countString()

int countString ( String  )

◆ countStringIgnoreCase()

int countStringIgnoreCase ( String  )

◆ decodeURI()

String decodeURI ( )

◆ detectCharset()

static final String detectCharset ( byte  [],
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ encodeURI()

String encodeURI ( bool  )

◆ endsWith()

bool endsWith ( String  )

◆ equals()

◆ equalsIgnoreCase()

bool equalsIgnoreCase ( String  )

◆ escape()

String escape ( )

◆ fill()

static final String fill ( char  ,
int   
) throws IllegalArgumentException
static

◆ find() [1/2]

int find ( String  )

◆ find() [2/2]

int find ( String  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException

◆ findExtension()

String findExtension ( )

◆ findFilename()

String findFilename ( )

◆ findFilenameAndExtension()

String findFilenameAndExtension ( )

◆ findPathFilename()

String findPathFilename ( )

◆ findVolume()

String findVolume ( )

◆ findVolumePath()

String findVolumePath ( )

◆ format()

◆ formatDate()

static final String formatDate ( String  ,
long   
) throws IllegalArgumentException
static

◆ formatPath()

static final String formatPath ( String  ,
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

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ 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()

String insert ( int  ,
  Object 
) throws IllegalArgumentException

◆ isBlank()

bool isBlank ( )

◆ isDigit()

bool isDigit ( )

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ 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()

◆ lower()

String lower ( )

◆ ltrim()

String ltrim ( bool  )

◆ parseBool()

bool parseBool ( )

◆ parseDate()

long parseDate ( String  ,
int   
) throws IllegalArgumentException

◆ parseDouble()

double parseDouble ( )

◆ parseFloat()

◆ parseHex()

long parseHex ( )

◆ parseInt()

int parseInt ( )

被这些函数引用 ConnectionPool.config() , 以及 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ parseLong()

long parseLong ( )

◆ parseMarkdown()

String parseMarkdown ( )

◆ removeExtension()

String removeExtension ( )

◆ replace() [1/2]

String replace ( int  ,
int  ,
  String 
) throws IllegalArgumentException

被这些函数引用 PreparedStatement.safety().

这是这个函数的调用关系图:

◆ replace() [2/2]

String replace ( String  ,
  String 
)

◆ replaceExtension()

String replaceExtension ( String  )

◆ replaceFilename()

String replaceFilename ( String  )

◆ replaceFilenameAndExtension()

String replaceFilenameAndExtension ( String  )

◆ rtrim()

String rtrim ( bool  )

◆ split() [1/2]

String [] split ( char  )

◆ split() [2/2]

String [] split ( String  )

被这些函数引用 ConnectionPool.config() , 以及 PreparedStatement.PreparedStatement().

这是这个函数的调用关系图:

◆ startsWith()

bool startsWith ( String  )

◆ substring() [1/2]

String substring ( int  ) throws IllegalArgumentException

◆ substring() [2/2]

String substring ( int  ,
int   
) throws IllegalArgumentException

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ toAbsolutePath()

String toAbsolutePath ( String  )

◆ toCharArray()

char [] toCharArray ( bool  )

◆ toRelativePath()

String toRelativePath ( String  ,
bool  ,
bool   
)

◆ trim()

String trim ( bool  )

被这些函数引用 ConnectionPool.config() , 以及 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ upper()

String upper ( )

结构体成员变量说明

◆ bool

bool ==(String)

在文件 String.x130 行定义.

◆ SLASH

const char SLASH
static

斜杠字符常量,用于路径分隔等操作

在文件 String.x11 行定义.