Example usage for android.text TextUtils lastIndexOf

List of usage examples for android.text TextUtils lastIndexOf

Introduction

In this page you can find the example usage for android.text TextUtils lastIndexOf.

Prototype

public static int lastIndexOf(CharSequence s, char ch) 

Source Link

Usage

From source file:com.android.utils.TreeDebug.java

private static void appendSimpleName(StringBuilder sb, CharSequence fullName) {
    int dotIndex = TextUtils.lastIndexOf(fullName, '.');
    if (dotIndex < 0) {
        dotIndex = 0;/*from  w w  w. j  a va 2s  . com*/
    }

    sb.append(fullName, dotIndex, fullName.length());
}

From source file:com.googlecode.eyesfree.brailleback.TreeDebugNavigationMode.java

private void appendSimpleName(StringBuilder sb, CharSequence fullName) {
    int dotIndex = TextUtils.lastIndexOf(fullName, '.');
    if (dotIndex < 0) {
        dotIndex = 0;//from www. j a va2 s  .co  m
    }
    sb.append(fullName, dotIndex, fullName.length());
}