int function ( @ NotNull String arg0 , int arg1 ) { int loc0 = arg0 . indexOf ( CSI . charAt ( 0 ) , arg1 ) ; if ( loc0 == - 1 ) { return - 1 ; } else if ( loc0 == arg0 . length ( ) - 1 ) { return encodeUnhandledSuffixLength ( arg0 , loc0 ) ; } return arg0 . charAt ( loc0 + 1 ) == CSI . charAt ( 1 ) ? loc0 : - 1 ; }
returns the index of the first occurrence of csi within the passed string that is greater than or equal to fromindex , or negative number if csi is not found : -1 - length of text suffix to keep in case of an incomplete csi . concode_field_sep char ESC_CHAR concode_elem_sep String CSI concode_elem_sep Key myCurrentTextAttributes concode_elem_sep char BACKSPACE concode_elem_sep String myUnhandledStdout concode_elem_sep String myUnhandledStderr concode_elem_sep ColoredOutputTypeRegistry myColoredOutputTypeRegistry concode_elem_sep String M_CSI concode_field_sep int encodeUnhandledSuffixLength concode_elem_sep void escapeText concode_elem_sep Key getCurrentOutputAttributes concode_elem_sep int decodeUnhandledSuffixLength concode_elem_sep String prependUnhandledText concode_elem_sep void updateUnhandledSuffix concode_elem_sep List<Pair<String,Key>> processTextChunk concode_elem_sep int findConsecutiveEscSequencesEndIndex concode_elem_sep String normalizeAsciiControlCharacters concode_elem_sep void coloredChunksAvailable concode_elem_sep void coloredTextAvailable concode_elem_sep int findEscSeqEndIndex