String Manipulation/Formating Functions; Formatex() - LeCroy USB Protocol Suite Reference Manual

Verification script engine
Table of Contents

Advertisement

LeCroy Corporation

22 String Manipulation/Formating Functions

22.1 FormatEx()

Writes formatted data to a string. Format is used to control the way that arguments print out. The
format string may contain conversion specifications that affect the way in which the arguments in the
value string are returned. Format conversion characters, flag characters, and field width modifiers are
used to define the conversion specifications.
Format:
FormatEx (format_string, argument_list)
Parameters:
format_string
argument_list
Return Values:
Formatted string
Format conversion characters:
Code
Type
c
Integer
d
Integer
i
Integer
o
Integer
u
Integer
x
Integer
X
Integer
s
String
Format-control string
Optional list of arguments to fill in the format string
Output
Character
Signed decimal integer
Signed decimal integer
Unsigned octal integer
Unsigned decimal integer
Unsigned hexadecimal integer, using "abcdef."
Unsigned hexadecimal integer, using "ABCDEF."
String
Verification Script Engine Reference Manual
Page 100 of 107

Advertisement

Table of Contents
loading

Table of Contents