awString

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.

Note: Any Unicode characters that cannot be represented in ANSI format will be converted UTF-8 format in the destination string.

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.

Note: Any Unicode character that cannot be represented in ANSI format will be converted UTF-8 format in the destination string.

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.

Note: Any Unicode characters that cannot be represented in ANSI format will be converted UTF-8 format in the destination string.

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.

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.