Show
Returns true if the first string starts with the second string (equivalent to the
Returns the numeric code of the first character of the argument. In UTF8 encoding, returns the Unicode code point of the character. In other multibyte encodings, the argument must be an ASCII character.
Removes the longest string containing only characters in
Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character.
Concatenates the text representations of all the arguments. NULL arguments are ignored.
Concatenates all but the first argument, with separators. The first argument is used as the separator string, and should not be NULL. Other NULL arguments are ignored.
Formats arguments according to a format string; see Section 9.4.1. This function is similar to the C function
Converts the first letter of each word to upper case and the rest to lower case. Words are sequences of alphanumeric characters separated by non-alphanumeric characters.
Returns first
Returns the number of characters in the string.
Extends the
Removes the longest string containing only characters in
Computes the MD5 hash of the argument, with the result written in hexadecimal.
Splits
Returns current client encoding name.
Returns the given string suitably quoted to be used as an identifier in an SQL statement string. Quotes are added only if necessary (i.e., if the string contains non-identifier characters or would be case-folded). Embedded quotes are properly doubled. See also Example 43.1.
Returns the given string suitably quoted to be used as a string literal in an SQL statement string. Embedded single-quotes and backslashes are properly doubled. Note that
Converts the given value to text and then quotes it as a literal. Embedded single-quotes and backslashes are properly doubled.
Returns the given string suitably quoted to be used as a string literal in an SQL statement string; or, if the argument is null, returns
Converts the given value to text and then quotes it as a literal; or, if the argument is null, returns
Returns the number of times the POSIX regular expression
Returns the position within
Checks whether a match of the POSIX regular expression
Returns substrings within the first match of the POSIX regular expression
Returns substrings within the first match of the POSIX regular expression
{bar} {baz} Replaces the substring that is the first match to the POSIX regular expression
Replaces the substring that is the
Splits
Splits
hello world Returns the substring within
Repeats
Replaces all occurrences in
Reverses the order of the characters in the string.
Returns last
Extends the
Removes the longest string containing only characters in
Splits
Returns true if
Splits the
Splits the
xx NULL zz Returns first starting index of the specified
Extracts the substring of
Converts
Converts the number to its equivalent hexadecimal representation.
Replaces each character in
Evaluate escaped Unicode characters in the argument. Unicode characters can be specified as If the server encoding is not UTF-8, the Unicode code point identified by one of these escape sequences is converted to the actual server encoding; an error is reported if that's not possible. This function provides a (non-standard) alternative to string constants with Unicode escapes (see Section 4.1.2.3).
What reads a line of input and stores it in a string object?The C++ getline() is a standard library function that is used to read a string or a line from an input stream. It is a part of the <string> header. The getline() function extracts characters from the input stream and appends it to the string object until the delimiting character is encountered.
Which statement will read an entire line of input into the following string variable?new
What causes a program to wait until information is typed at the keyboard and the Enter key is pressed?The cin object causes a program to wait until data is typed at the keyboard and the enter key is pressed. No other lines in the program will be executed until cin gets its input.
What function tells the cin object to skip one or more characters in the keyboard buffer?Sometimes you will find that you need to skip or ignore characters that are in the input keyboard buffer. The cin. ignore function allows you to skip one or a series of characters.
|