private boolean tagEquals ( String tag1 , String tag2 ) { if ( caseSensitive ) { return tag1 . equals ( tag2 ) ; } return tag1 . equalsIgnoreCase ( tag2 ) ; }
Determine if the two specified tag names are equal .