Lines Matching defs:string

7 #include <string.h>
547 path_str.reserve(path_.length() + 1); // Only allocate string once.
573 std::string::npos &&
574 component.find(kParentDirectory) != std::string::npos) {
589 std::string FilePath::MaybeAsASCII() const {
592 return std::string();
595 std::string FilePath::AsUTF8Unsafe() const {
612 FilePath FilePath::FromUTF8Unsafe(const std::string& utf8) {
634 std::string FilePath::MaybeAsASCII() const {
637 return std::string();
640 std::string FilePath::AsUTF8Unsafe() const {
649 FilePath FilePath::FromUTF8Unsafe(const std::string& utf8) {
683 // Windows specific implementation of file string comparisons
712 // Mac OS X specific implementation of file string comparisons
1131 // Returns the next non-ignorable codepoint within string starting from the
1135 inline int HFSReadNextNonIgnorableCodepoint(const char* string,
1140 // CBU8_NEXT returns a value < 0 in error cases. For purposes of string
1142 CBU8_NEXT(string, *index, length, codepoint);
1185 StringType FilePath::GetHFSDecomposedForm(const StringType& string) {
1189 reinterpret_cast<const UInt8*>(string.c_str()),
1190 string.length(),
1201 // (Increasing rather than decreasing it would clobber the string contents!)
1209 // Reduce result.length() to actual string length.
1230 // GetHFSDecomposedForm() returns an empty string in an error case.
1259 // Generic (POSIX) implementation of file string comparison.
1286 // If the string only has two separators and they're at the beginning,
1287 // don't strip them, unless the string began with more than two separators.