/** * Adds special marks so that that the given styled string is readable in a BiDi environment. * * @param styledString the styled string * @param delimiters the additional delimiters * @return the processed styled string * @since 3.4 */ public static StyledString markLTR(StyledString styledString, String delimiters) { if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString, delimiters); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }
/** * Adds special marks so that that the given styled string is readable in a BiDi environment. * * @param styledString the styled string * @param delimiters the additional delimiters * @return the processed styled string * @since 3.4 */ public static StyledString markLTR(StyledString styledString, String delimiters) { if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString, delimiters); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }
/** * Adds special marks so that that the given styled Java element label is readable in a BiDi * environment. * * @param styledString the styled string * @return the processed styled string * @since 3.6 */ public static StyledString markJavaElementLabelLTR(StyledString styledString) { if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString, JAVA_ELEMENT_DELIMITERS); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }
/** * Adds special marks so that that the given styled Java element label is readable in a BiDi * environment. * * @param styledString the styled string * @return the processed styled string * @since 3.6 */ public static StyledString markJavaElementLabelLTR(StyledString styledString) { if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString, JAVA_ELEMENT_DELIMITERS); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }
/** * Adds special marks so that that the given styled string is readable in a BiDi environment. * * @param styledString the styled string * @return the processed styled string * @since 3.4 */ public static StyledString markLTR(StyledString styledString) { /* * NOTE: For performance reasons we do not call markLTR(styledString, null) */ if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }
/** * Adds special marks so that that the given styled string is readable in a BiDi environment. * * @param styledString the styled string * @return the processed styled string * @since 3.4 */ public static StyledString markLTR(StyledString styledString) { /* * NOTE: For performance reasons we do not call markLTR(styledString, null) */ if (!USE_TEXT_PROCESSOR) return styledString; String inputString= styledString.getString(); String string= TextProcessor.process(inputString); if (string != inputString) insertMarks(styledString, inputString, string); return styledString; }