Lines Matching refs:str

507   std::string str() const { return std::string(c_str(), Length()); }
991 /// @param[in] str A const char pointer to the data to be stored as a string.
992 /// @param[in] len The number of bytes that should be stored from `str`.
994 Offset<String> CreateString(const char *str, size_t len) {
998 PushBytes(reinterpret_cast<const uint8_t *>(str), len);
1004 /// @param[in] str A const char pointer to a C-string to add to the buffer.
1006 Offset<String> CreateString(const char *str) {
1007 return CreateString(str, strlen(str));
1011 /// @param[in] str A const reference to a std::string to store in the buffer.
1013 Offset<String> CreateString(const std::string &str) {
1014 return CreateString(str.c_str(), str.length());
1018 /// @param[in] str A const pointer to a `String` struct to add to the buffer.
1020 Offset<String> CreateString(const String *str) {
1021 return str ? CreateString(str->c_str(), str->Length()) : 0;
1027 /// @param[in] str A const char pointer to the data to be stored as a string.
1028 /// @param[in] len The number of bytes that should be stored from `str`.
1030 Offset<String> CreateSharedString(const char *str, size_t len) {
1036 auto off = CreateString(str, len);
1052 /// @param[in] str A const char pointer to a C-string to add to the buffer.
1054 Offset<String> CreateSharedString(const char *str) {
1055 return CreateSharedString(str, strlen(str));
1061 /// @param[in] str A const reference to a std::string to store in the buffer.
1063 Offset<String> CreateSharedString(const std::string &str) {
1064 return CreateSharedString(str.c_str(), str.length());
1070 /// @param[in] str A const pointer to a `String` struct to add to the buffer.
1072 Offset<String> CreateSharedString(const String *str) {
1073 return CreateSharedString(str->c_str(), str->Length());
1514 bool Verify(const String *str) const {
1516 return !str ||
1517 (VerifyVector(reinterpret_cast<const uint8_t *>(str), 1, &end) &&