logback-android/src/main/java/ch/qos/logback/classic/util/LoggerNameUtil.java
public static int getSeparatorIndexOf(String name, int fromIndex) {
    int dotIndex = name.indexOf(CoreConstants.DOT, fromIndex);
    int dollarIndex = name.indexOf(CoreConstants.DOLLAR, fromIndex);

    if (dotIndex == -1 && dollarIndex == -1) return -1;
    if (dotIndex == -1) return dollarIndex;
    if (dollarIndex == -1) return dotIndex;

    return dotIndex < dollarIndex ? dotIndex : dollarIndex;
  }
public static int getSeparatorIndexOf(String name, int fromIndex) {
    int dotIndex = name.indexOf(CoreConstants.DOT, fromIndex);
    int dollarIndex = name.indexOf(CoreConstants.DOLLAR, fromIndex);

    if (dotIndex == -1 && dollarIndex == -1) return -1;
    if (dotIndex == -1) return dollarIndex;
    if (dollarIndex == -1) return dotIndex;

    return dotIndex < dollarIndex ? dotIndex : dollarIndex;
  }
public static int getSeparatorIndexOf ( String name , int fromIndex ) { int dotIndex = name . indexOf ( CoreConstants . DOT , fromIndex ) ; int dollarIndex = name . indexOf ( CoreConstants . DOLLAR , fromIndex ) ; if ( dotIndex == - 1 && dollarIndex == - 1 ) return - 1 ; if ( dotIndex == - 1 ) return dollarIndex ; if ( dollarIndex == - 1 ) return dotIndex ; return dotIndex < dollarIndex ? dotIndex : dollarIndex ; }
Get the position of the separator character, if any, starting at position
'fromIndex'.

@param name string to search
@param fromIndex starting search index
@return position of separator
Get the position of the separator character if any starting at position fromIndex .