uint length() const/string

Returns a count of the number of characters in the string.

The description above has been adapted from the std::string::length page on cplusplus.com.