Home | History | Annotate | Download | only in libclang

Lines Matching defs:String

22 #include <string>
30 /// \brief Create a CXString object for an empty "" string.
33 /// \brief Create a CXString object for an NULL string.
35 /// A NULL string should be used as an "invalid" value in case of errors.
38 /// \brief Create a CXString object from a nul-terminated C string. New
39 /// CXString may contain a pointer to \p String.
41 /// \p String should not be changed by the caller afterwards.
42 CXString createRef(const char *String);
44 /// \brief Create a CXString object from a nul-terminated C string. New
45 /// CXString will contain a copy of \p String.
47 /// \p String can be changed or freed by the caller.
48 CXString createDup(const char *String);
51 /// contain a pointer to the undrelying data of \p String.
53 /// \p String should not be changed by the caller afterwards.
54 CXString createRef(StringRef String);
57 /// contain a copy of \p String.
59 /// \p String can be changed or freed by the caller.
60 CXString createDup(StringRef String);
62 // Usually std::string is intended to be used as backing storage for CXString.
63 // In this case, call \c createRef(String.c_str()).
65 // If you need to make a copy, call \c createDup(StringRef(String)).
66 CXString createRef(std::string String) = delete;
68 /// \brief Create a CXString object that is backed by a string buffer.
71 CXStringSet *createSet(const std::vector<std::string> &Strings);
73 /// \brief A string pool used for fast allocation/deallocation of strings.