Length limited string comparison.

Length limited string comparison. Alpha-numerical comparison of two strings of maxLen bytes. The comparison ends if either a string end or maxLen is reached.

Name Type Default Description
Return int   < 0 : s1 < s2
Return int   = 0 : s1 = s2
Return int   > 0 : s1 > s2
s1, s2 char*, char* -, - Strings to compare
maxLen int - Only compare to given length. If a string is shorter, the comparison ends there.
netWeight int 0 Compare the net weight strings

  • Replace empty strings by a zero width space (Unicode 0x200B).
  • Replace all UTF-8 letters by their (Unicode) tags <0xXXXX>.
  • If the strings begins with %!TT, remove the ParaStyle right behind %!TT.
  • Replace all other ParaStyles by paragraph delimiters (hard returns).
  • Remove all remaining TaggedText tags.
  • Replace every double quota by " and every singe quota by '.
  • Replace every blank (Unicode 0x2000 - 0x200F) by space.
  • Replace every hyphenation sign (Unicode 0x2010 - 0x2016) by minus.

Since
Version 1.4.2 R 520, 7. Dec. 2007

netWeight since v3.2.3 R2600, 08.08.2011

Available
priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator

See Also
strcmp
textcmp
textncmp

Alphabetic index HTML hierarchy of classes or Java