标准字符串处理函数有针对于多字节的副本,它们也实现了对字符的locale-specific排序。多字节函数的名称以Ansi-开始。比如,StrPos的多字节版本是AnsiStrPos。多字节字符的支持是和操作系统相关的,它基于本地设置(current locale)。
宽字符串
System单元提供了三个函数,WideCharToString、WideCharLenToString和StringToWideChar,它们用来把0结束宽字符串转换为单字节或双字节长字符串。
关于宽字符串,参考About extended character sets。
- 127 -
Standard routines and I/O
Other standard routines(其它标准例程)
下面的表格列出了经常使用的过程和函数,它们并不是完整的标准例程。 过程或函数
Abort
Addr
AllocMem
ArcTan
Assert
Assigned
Beep
Break
ByteToCharIndex
Chr
Close
CompareMem
CompareStr
CompareText
Continue
Copy
Cos
CurrToStr
Date
DateTimeToStr
DateToStr
Dec
Dispose
ExceptAddr
Exit
Exp
FillChar
Finalize
FloatToStr
FloatToStrF
FmtLoadStr
FmtStr
Format
FormatDateTime
FormatFloat
FreeMem
GetMem
GetParentForm
Halt
Hi
- 128 - 描述 Ends the process without reporting an error. Returns a pointer to a specified object. Allocates a memory block and initializes each byte to zero. Calculates the arctangent of the given number. Tests whether a boolean expression is True. Tests for a nil (unassigned) pointer or procedural variable. Generates a standard beep using the computer speaker. Causes control to exit a for, while, or repeat statement. Returns the position of the character containing a specified byte in a string. Returns the character for a specified value. Terminates the association between a file variable and an external file. Performs a binary comparison of two memory images. Compares strings case sensitively. Compares strings by ordinal value and is not case sensitive. Returns control to the next iteration of for, while, or repeat statements. Returns a substring of a string or a segment of a dynamic array. Calculates the cosine of an angle. Converts a currency variable to a string. Returns the current date. Converts a variable of type TDateTime to a string. Converts a variable of type TDateTime to a string. Decrements an ordinal variable. Releases memory allocated for a dynamic variable. Returns the address at which the current exception was raised. Exits from the current procedure. Calculates the exponential of X. Fills contiguous bytes with a specified value. Uninitializes a dynamically allocated variable. Converts a floating point value to a string. Converts a floating point value to a string, using specified format. Returns formatted output using a resourced format string. Assembles a formatted string from a series of arrays. Assembles a string from a format string and a series of arrays. Formats a date-and-time value. Formats a floating point value. Disposes of a dynamic variable. Creates a dynamic variable and a pointer to the address of the block. Returns the form or property page that contains a specified control. Initiates abnormal termination of a program. Returns the high-order byte of an expression as an unsigned value.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-23665-95.html
请你马上离开呀