2 ms·
string is a common-currency type. I don't want to be converting between char* and vector<char> and custom::unicode_string, etc. because each API or library has
by favorited 8y ago
string is a common-currency type. I don't want to be converting between char* and vector<char> and custom::unicode_string, etc. because each API or library has their own slightly specialized version. (anymore than we already do, anyway)
Most of the time, std::string is fine, so I expect there to be APIs exchanging string data using std::string.
Rope/cord is a domain-specific data structure. If I was building software which was constantly modifying ranges of text, then rope might be a good choice.