Maybe<std::u16string> getFullyQualifiedClassName(const StringPiece16& package, const StringPiece16& className) { if (className.empty()) { return {}; } if (util::isJavaClassName(className)) { return className.toString(); } if (package.empty()) { return {}; } std::u16string result(package.data(), package.size()); if (className.data()[0] != u'.') { result += u'.'; } result.append(className.data(), className.size()); if (!isJavaClassName(result)) { return {}; } return result; }
std::u16string placeholder(const StringPiece16& text) override { return text.toString(); }
std::u16string PseudoMethodBidi::placeholder(const StringPiece16& source) { // Surround a placeholder with directionality change sequence return k_rlm + k_rlo + source.toString() + k_pdf + k_rlm; }
std::u16string text(const StringPiece16& text) override { return text.toString(); }
std::u16string PseudoMethodAccent::placeholder(const StringPiece16& source) { // Surround a placeholder with brackets return k_placeholder_open + source.toString() + k_placeholder_close; }