Home | History | Annotate | Download | only in libSPIRV

Lines Matching refs:string

59 #include <string>
77 typedef SPIRVMap<Type, std::string> MapType; \
174 inline std::vector<std::string>
175 getVec(const std::string &S, char Delim) {
176 std::vector<std::string> Strs;
178 std::string Item;
184 inline std::unordered_set<std::string>
185 getUnordSet(const std::string &S, char Delim = ' ') {
186 std::unordered_set<std::string> Strs;
188 std::string Item;
194 inline std::set<std::string>
195 getSet(const std::string &S, char Delim = ' ') {
196 std::set<std::string> Strs;
198 std::string Item;
271 std::string
273 std::string Name;
274 if (SPIRVMap<K, std::string>::find(Key, &Name))
280 bool getByName(const std::string &Name, K &Key) {
281 return SPIRVMap<K, std::string>::rfind(Name, &Key);
284 // Add a number as a string to a string
286 std::string
287 concat(const std::string& s, const T& n) {
293 inline std::string
294 concat(const std::string &S1, const std::string &S2, char Delim = ' ') {
295 std::string S;
303 inline std::string
304 operator+(const std::string& s, int n) {
308 inline std::string
309 operator+(const std::string& s, unsigned n) {
314 std::string
346 // Get the number of words used for encoding a string literal in SPIRV
348 getSizeInWords(const std::string& Str) {
353 inline std::string
356 std::string Str = std::string();
369 inline std::string
375 getVec(const std::string &Str) {
384 assert(Str[I] && "0 is not allowed in string");