Home
last modified time | relevance | path

Searched refs:strRef (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/mlir/lib/IR/
DDiagnostics.cpp90 auto strRef = val.toStringRef(data); in twineToStrRef() local
91 strings.push_back(std::unique_ptr<char[]>(new char[strRef.size()])); in twineToStrRef()
92 memcpy(&strings.back()[0], strRef.data(), strRef.size()); in twineToStrRef()
95 return StringRef(&strings.back()[0], strRef.size()); in twineToStrRef()
/external/clang/tools/libclang/
DCIndex.cpp3566 std::string strRef(StrE->getString().str()); in evaluateExpr() local
3567 result->EvalData.stringVal = new char[strRef.size() + 1]; in evaluateExpr()
3568 strncpy((char *)result->EvalData.stringVal, strRef.c_str(), in evaluateExpr()
3569 strRef.size()); in evaluateExpr()
3570 result->EvalData.stringVal[strRef.size()] = '\0'; in evaluateExpr()
3587 std::string strRef(StrE->getString().str()); in evaluateExpr() local
3588 result->EvalData.stringVal = new char[strRef.size() + 1]; in evaluateExpr()
3589 strncpy((char *)result->EvalData.stringVal, strRef.c_str(), strRef.size()); in evaluateExpr()
3590 result->EvalData.stringVal[strRef.size()] = '\0'; in evaluateExpr()
/external/llvm-project/clang/tools/libclang/
DCIndex.cpp3958 std::string strRef(StrE->getString().str()); in evaluateExpr() local
3959 result->EvalData.stringVal = new char[strRef.size() + 1]; in evaluateExpr()
3960 strncpy((char *)result->EvalData.stringVal, strRef.c_str(), in evaluateExpr()
3961 strRef.size()); in evaluateExpr()
3962 result->EvalData.stringVal[strRef.size()] = '\0'; in evaluateExpr()
3979 std::string strRef(StrE->getString().str()); in evaluateExpr() local
3980 result->EvalData.stringVal = new char[strRef.size() + 1]; in evaluateExpr()
3981 strncpy((char *)result->EvalData.stringVal, strRef.c_str(), strRef.size()); in evaluateExpr()
3982 result->EvalData.stringVal[strRef.size()] = '\0'; in evaluateExpr()
/external/libcppbor/tests/
Dcppbor_test.cpp337 Tstr& strRef = str; in TEST() local
340 EXPECT_EQ("\x65\x68\x65\x6c\x6c\x6f"s, details::makeItem(strRef)->toString()); in TEST()