diff --git src/org/eclipse/equinox/bidi/internal/consumable/STextEmail.java src/org/eclipse/equinox/bidi/internal/consumable/STextEmail.java index 3f69de0..cc8a1d2 100644 --- src/org/eclipse/equinox/bidi/internal/consumable/STextEmail.java +++ src/org/eclipse/equinox/bidi/internal/consumable/STextEmail.java @@ -27,6 +27,10 @@ super("<>.:,;@"); //$NON-NLS-1$ } + public int getDirection(STextEnvironment environment, String text) { + return getDirection(environment, text, new STextCharTypes(text)); + } + /** * @return {@link STextEngine#DIR_RTL DIR_RTL} if the following * conditions are satisfied: diff --git src/org/eclipse/equinox/bidi/internal/consumable/STextMath.java src/org/eclipse/equinox/bidi/internal/consumable/STextMath.java index dcadfba..69d7a28 100644 --- src/org/eclipse/equinox/bidi/internal/consumable/STextMath.java +++ src/org/eclipse/equinox/bidi/internal/consumable/STextMath.java @@ -29,6 +29,10 @@ super("+-/*()="); //$NON-NLS-1$ } + public int getDirection(STextEnvironment environment, String text) { + return getDirection(environment, text, new STextCharTypes(text)); + } + /** * @return {@link STextEngine#DIR_RTL DIR_RTL} if the following * conditions are satisfied: diff --git src/org/eclipse/equinox/bidi/internal/consumable/STextRegex.java src/org/eclipse/equinox/bidi/internal/consumable/STextRegex.java index 97d7e3f..56b1baa 100644 --- src/org/eclipse/equinox/bidi/internal/consumable/STextRegex.java +++ src/org/eclipse/equinox/bidi/internal/consumable/STextRegex.java @@ -215,6 +215,10 @@ return text.length(); } + public int getDirection(STextEnvironment environment, String text) { + return getDirection(environment, text, new STextCharTypes(text)); + } + /** * @return {@link STextEngine#DIR_RTL DIR_RTL} if the following * conditions are satisfied: