#include "genlib.h"Functions | |
| string | IntegerToString (int num) |
| string | RealToString (double num) |
| int | StringToInteger (string str) |
| double | StringToReal (string str) |
| string | ConvertToLowerCase (string s) |
| string | ConvertToUpperCase (string s) |
| string ConvertToLowerCase | ( | string | s | ) |
This function returns a new string with all alphabetic characters converted to lower case.
| string ConvertToUpperCase | ( | string | s | ) |
This function returns a new string with all alphabetic characters converted to upper case.
| string IntegerToString | ( | int | num | ) |
This function converts an integer into the corresponding string of digits. For example, IntegerToString(123) returns "123" as a string.
| string RealToString | ( | double | num | ) |
This function converts a floating-point number into the corresponding string form. For example, calling RealToString(23.45) returns "23.45". The conversion is the same as that used for "%G" format in printf.
| int StringToInteger | ( | string | str | ) |
This function converts a string of digits into an integer. If the string is not a legal integer or contains extraneous characters, StringToInteger signals an error condition.
| double StringToReal | ( | string | str | ) |
This function converts a string representing a real number into its corresponding value. If the string is not a legal floating-point number or if it contains extraneous characters, StringToReal signals an error condition.
1.5.1