Searched refs:string_piece (Results 1 – 2 of 2) sorted by relevance
167 StringPiece RegTypeCache::AddString(const StringPiece& string_piece) { in AddString() argument168 char* ptr = arena_.AllocArray<char>(string_piece.length()); in AddString()169 memcpy(ptr, string_piece.data(), string_piece.length()); in AddString()170 return StringPiece(ptr, string_piece.length()); in AddString()
171 StringPiece AddString(const StringPiece& string_piece);