Character Comparison

JavaScript EditorDhtml editor     Free javascript download 



Main Page

Use the following tips:

  • Comparing a known lead byte with an ASCII character works correctly:

    В CopyCode imageCopy Code
    if( *sz1 == 'A' )
  • Comparing two unknown characters requires the use of one of the macros defined in Mbstring.h:

    В CopyCode imageCopy Code
    if( !_mbccmp( sz1, sz2) )

    This ensures that both bytes of a double-byte character are compared for equality.

See Also



JavaScript EditorDhtml editor     Free javascript download