Searched refs:string_piece (Results 1 – 2 of 2) sorted by relevance
172 StringPiece RegTypeCache::AddString(const StringPiece& string_piece) { in AddString() argument173 char* ptr = allocator_.AllocArray<char>(string_piece.length()); in AddString()174 memcpy(ptr, string_piece.data(), string_piece.length()); in AddString()175 return StringPiece(ptr, string_piece.length()); in AddString()
174 StringPiece AddString(const StringPiece& string_piece);