سؤال

Does this (perldoc unicode) mean that all non-printable characters are control-characters?

\p{Print}

This matches any character that is graphical or blank, except controls.
هل كانت مفيدة؟

المحلول

If invisible whitespace/blank characters are considered printable, then yes, that only leaves control characters as unprintable.

But if you don't consider whitespace/blank characters such as line separator printable, then no.

نصائح أخرى

This will tell you for sure:

diff -U0 \
      <( unichars -au '\P{Print}'   ) \
      <( unichars -au '\p{Control}' ) \
   && echo No differences

unichars comes from Unicode::Tussle

I can't run it before Monday.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top