nl: returns the position of the first digit in the trailing number of the given string or -1 if the string does not end with number example : alice has got a cat 12 - will return 20 the position of ' 1 ' alice has got a black cat - will return -1 no trailing number in the string concode_field_sep List<String> partNames concode_elem_sep String PART_NAME concode_elem_sep Map<Character,String> greekLetters concode_elem_sep Map<String,String> wordToDecimal concode_field_sep String replaceLastWordNumberToDecimal concode_elem_sep String replaceNumbersToDecimal concode_elem_sep String normalizePartQualifiers concode_elem_sep int digitsPercentage concode_elem_sep int romanToDecimal concode_elem_sep String removeStopWords concode_elem_sep String getTrailingInteger concode_elem_sep boolean inLevenshteinDistance concode_elem_sep String replaceLastRomanNumberToDecimal concode_elem_sep String normalize concode_elem_sep boolean isRomanNumber concode_elem_sep boolean isDecimalNumber concode_elem_sep boolean isEngWordNumber concode_elem_sep int processDecimal
code: int function ( String arg0 ) { int loc0 ; for ( loc0 = arg0 . length ( ) - 1 ; loc0 >= 0 ; loc0 -- ) { char loc1 = arg0 . charAt ( loc0 ) ; if ( ! Character . isDigit ( loc1 ) ) { break ; } } if ( loc0 == arg0 . length ( ) - 1 ) { return - 1 ; } return loc0 + 1 ; }