awString
awStringAppend
void awStringAppend(
BrokerString st,
char *append);
| st | The destination string. |
| append | The source string. |
Appends the source string append to the end of the destination string st.
awStringAppendByte
void awStringAppendByte(
BrokerString st,
char number);
| st | The destination string. |
| number | The number you are appending to the string. |
Appends a string representation of number to the end of the destination string st.
awStringAppendChar
void awStringAppendChar(
BrokerString st,
char c);
| st | The destination string. |
| c | The source character. |
Appends the source character c to the end of the destination string st.
awStringAppendDouble
void awStringAppendDouble(
BrokerString st,
double number);
| st | The destination string. |
| number | The double you are appending. |
Appends a string representation
of number to
the end of the destination string st. The C
language locale is used to format the double.
awStringAppendDoubleLocalized
void awStringAppendDoubleLocalized(
BrokerString st,
double number);
| st | The destination string. |
| number | The double you are appending. |
Appends a string representation
of number to
the end of the destination string st. The current
locale is used to format the double.
awStringAppendFloat
void awStringAppendFloat(
BrokerString st,
float number);
| st | The destination string. |
| number | The float you are appending. |
Appends a string representation
of number to
the end of the destination string st. The C
language locale is used to format the float.
awStringAppendFloatLocalized
void awStringAppendFloatLocalized(
BrokerString st,
float number);
| st | The destination string. |
| number | The float you are appending. |
Appends a string representation
of number to
the end of the destination string st. The current
locale is used to format the float.
awStringAppendInteger
void awStringAppendInteger(
BrokerString st,
int number);
| st | The destination string. |
| number | The int you are appending
to the string. |
Appends a string representation of number to the end of the destination string st.
awStringAppendLong
void awStringAppendLong(
BrokerString st,
BrokerLong number);
| st | The destination string. |
| number | The int you are appending. |
Appends a string representation of number to the end of the destination string st.
awStringAppendNString
void awStringAppendNString(
BrokerString st,
char *append,
int length);
| st | The destination string. |
| append | The source string. |
| length | The number of bytes of append you want to append to st. |
Appends length bytes of the source string append to the end of the destination string st.
awStringAppendNUCString
void awStringAppendNUCString(
BrokerString st,
charUC *append,
int length);
| st | The destination string. |
| append | The Unicode source string. |
| length | The number of characters to append |
Appends the specified number of characters from the Unicode source string append to the end of the destination string st.
awStringAppendShort
void awStringAppendShort(
BrokerString st,
short number);
| st | The destination string. |
| number | The short you are appending
to the string. |
Appends a string representation of number to the end of the destination string st.
awStringAppendUCChar
void awStringAppendUC(
BrokerString st,
charUC c);
| st | The destination string. |
| c | The Unicode source character. |
Appends the Unicode source character c to the end of the destination string st.
awStringAppendUCString
void awStringAppendUCString(
BrokerString st,
charUC *append);
| st | The destination string. |
| append | The Unicode source string. |
Appends the specified Unicode source string append to the end of the destination string st.
awStringClip
void awStringClip(
BrokerString st,
int max_length);
| st | The string to be truncated. |
| max_length | The maximum length of the string. |
Truncates the string st to the specified max_length. If st already has a length less than or equal to max_length, this function has no effect.
awStringDecIndent
void awStringDecIndent(
BrokerString st);
| st | The string whose indentation level is being set. |
Decrements the string indentation level for st by one level. See awStringIndent for a complete description of the string indentation level.
awStringIncIndent
void awStringIncIndent(BrokerString st);
| st | The string whose indentation level is being set. |
Increases the string indentation level for st by one. See awStringIndent for a complete description of string indentation level.
awStringIndent
void awStringIndent(BrokerString st);
| st | The string being set. |
Adds a new line to the string st and then adds a number indentation spaces, based on the current indentation level.
This function may be used with awStringDecIndent and awStringIncIndent as follows:
awStringAppend(st,"Hello");
awStringIncIndent(st);
awStringIndent(st);
awStringAppend(st,"First Indent");
awStringIncIndent(st);
awStringIndent(st);
awStringAppend(st,"Second Indent");
awStringIndent(st);
awStringAppend(st,"Still Here");
awStringDecIndent(st);
awStringDecIndent(st);
awStringIndent(st);
awStringAppend(st,"Back at First Level");
The following output would result from this code:
Hello
First Indent
Second Indent
Still Here
Back at First Level
awStringLength
int awStringLength(BrokerString st);
| st | The string. |
Returns the length of the string st.
awStringPointer
char * awStringPointer(BrokerString st);
| st | The string. |
Returns a pointer to the string st.
awStringResetIndent
void awStringResetIndent(BrokerString st);
| st | The string. |
Resets the string indentation level for st to zero. See awStringIndent for a complete description of string indentation level.