/** * Helper functions for use of MessagePattern. * In Java, these are package-private methods in MessagePattern itself. * In C++, they are declared here and implemented in messagepattern.cpp.
*/ class U_COMMON_API MessageImpl { public: /** * @return true if getApostropheMode()==UMSGPAT_APOS_DOUBLE_REQUIRED
*/ static UBool jdkAposMode(const MessagePattern &msgPattern) { return msgPattern.getApostropheMode()==UMSGPAT_APOS_DOUBLE_REQUIRED;
}
/** * Appends the s[start, limit[ substring to sb, but with only half of the apostrophes * according to JDK pattern behavior.
*/ staticvoid appendReducedApostrophes(const UnicodeString &s, int32_t start, int32_t limit,
UnicodeString &sb);
/** * Appends the sub-message to the result string. * Omits SKIP_SYNTAX and appends whole arguments using appendReducedApostrophes().
*/ static UnicodeString &appendSubMessageWithoutSkipSyntax(const MessagePattern &msgPattern,
int32_t msgStart,
UnicodeString &result);
private:
MessageImpl() = delete; // no constructor: all static methods
};
U_NAMESPACE_END
#endif// !UCONFIG_NO_FORMATTING
#endif// __MESSAGEIMPL_H__
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.