public static boolean isFlagged(CharSequence text,int index){
  if (index > INVALID_INDEX && index < text.length()) {
    char c=text.charAt(index);
    return c == SPACE || c == NEW_LINE || c == BOLD_FLAG || c == ITALIC_FLAG || c == STRIKE_FLAG;
  }
  return true;
}

public static boolean isFlagged ( CharSequence text , int index ) { if ( index > INVALID_INDEX && index < text . length ( ) ) { char c = text . charAt ( index ) ; return c == SPACE || c == NEW_LINE || c == BOLD_FLAG || c == ITALIC_FLAG || c == STRIKE_FLAG ; } return true ; }
checks whether the character present at the index of the charsequence is a flagged character .
