findFirstStrongDirectional static method
Implementation
static int findFirstStrongDirectional(String text) {
for (int i = 0; i < text.length; i++) {
final int codeUnit = text.codeUnitAt(i);
final BidiCategory category = _getBidiCategory(codeUnit);
if (category == BidiCategory.L ||
category == BidiCategory.R ||
category == BidiCategory.AL) {
return i;
}
}
return -1;
}