Searched refs:sub_str (Results 1 – 6 of 6) sorted by relevance
/third_party/mindspore/mindspore/lite/src/common/ |
D | utils.cc | 53 std::string RemoveSubStr(const std::string &from, const std::string &sub_str, RemoveSubStrMode mode… in RemoveSubStr() argument 59 if (sub_str.length() > from.length()) { in RemoveSubStr() 64 if (from.substr(0, sub_str.length()) == sub_str) { in RemoveSubStr() 65 result = from.substr(sub_str.length()); in RemoveSubStr() 68 if (from.rfind(sub_str) == from.length() - sub_str.length()) { in RemoveSubStr() 69 result = from.substr(0, from.length() - sub_str.length()); in RemoveSubStr() 73 while ((index = result.find(sub_str)) != std::string::npos) { in RemoveSubStr() 74 result = result.erase(index, sub_str.length()); in RemoveSubStr()
|
D | utils.h | 174 std::string RemoveSubStr(const std::string &from, const std::string &sub_str, RemoveSubStrMode mode…
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-cff-interp-common.hh | 300 byte_str_t sub_str (unsigned int offset, unsigned int len_) const in sub_str() function 341 operator byte_str_t () const { return str.sub_str (offset, str.length - offset); } in operator byte_str_t() 343 byte_str_t sub_str (unsigned int offset_, unsigned int len_) const in sub_str() function 344 { return str.sub_str (offset_, len_); } in sub_str() 562 val->str = str_ref.str.sub_str (opStart, str_ref.offset - opStart); in add_op() 570 val->str = str_ref.sub_str ( opStart, str_ref.offset - opStart); in add_op()
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-cff-interp-common.hh | 313 byte_str_t sub_str (unsigned int offset, unsigned int len_) const in sub_str() function 356 operator byte_str_t () const { return str.sub_str (offset, str.length - offset); } in operator byte_str_t() 358 byte_str_t sub_str (unsigned int offset_, unsigned int len_) const in sub_str() function 359 { return str.sub_str (offset_, len_); } in sub_str() 588 val->str = str_ref.str.sub_str (opStart, str_ref.offset - opStart); in add_op() 596 val->str = str_ref.sub_str ( opStart, str_ref.offset - opStart); in add_op()
|
/third_party/harfbuzz/src/ |
D | hb-cff-interp-common.hh | 300 byte_str_t sub_str (unsigned int offset, unsigned int len_) const in sub_str() function 341 operator byte_str_t () const { return str.sub_str (offset, str.length - offset); } in operator byte_str_t() 343 byte_str_t sub_str (unsigned int offset_, unsigned int len_) const in sub_str() function 344 { return str.sub_str (offset_, len_); } in sub_str() 562 val->str = str_ref.str.sub_str (opStart, str_ref.offset - opStart); in add_op() 570 val->str = str_ref.sub_str ( opStart, str_ref.offset - opStart); in add_op()
|
/third_party/mindspore/mindspore/nn/ |
D | cell.py | 570 sub_str = '\n' 572 sub_str += '{}\n'.format(self.extend_repr()) 574 sub_str += '({}): {}\n'.format(key, repr(value)) 575 sub_str = sub_str.replace('\n', '\n ') + '>' 576 info_str += sub_str
|