Set this string's data from an existing string16. Data will be always copied. Translation will occur if necessary based on the underlying string type.
| 619 | // type. |
| 620 | /// |
| 621 | bool FromString16(const base::string16& str) { |
| 622 | if (str.empty()) { |
| 623 | clear(); |
| 624 | return true; |
| 625 | } |
| 626 | AllocIfNeeded(); |
| 627 | return traits::from_string16(str, string_); |
| 628 | } |
| 629 | |
| 630 | /// |
| 631 | // Comparison operator overloads. |