chars.h.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. chars.h
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='channel.h.html' title=' channel.h '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='chipset.h.html' title=' chipset.h '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * chars.h - character selection and matcing macros;
  24. *
  25. * Motley Tools by Charles Maier &lt;cmaier@cmassoc.net&gt;;
  26. * Copyright 2001-2006 by Charles Maier Associates;
  27. * Licensed under the Internet Software Consortium License;
  28. *
  29. *--------------------------------------------------------------------*/
  30. #ifndef CHARS_HEADER
  31. #define CHARS_HEADER
  32. /*====================================================================*
  33. *
  34. *--------------------------------------------------------------------*/
  35. #ifndef isblank
  36. #ifndef __CYGWIN__
  37. #define isblank(c) ((char)(c) == ' ') || ((char)(c) == '\t')
  38. #endif
  39. #endif
  40. #ifndef nobreak
  41. #define nobreak(c) ((char)(c) != '\n') &amp;&amp; ((int)(c) != EOF)
  42. #endif
  43. #ifndef isquote
  44. #define isquote(c) ((char)(c) == '\'') || ((char)(c) == '\&quot;')
  45. #endif
  46. #ifndef isslash
  47. #define isslash(c) ((char)(c) == '/') || ((char)(c) == '\\')
  48. #endif
  49. #ifndef isident
  50. #define isident(c) (isalnum (c) || (c == '_') || (c == '-') || (c == '.') || (c == ':'))
  51. #endif
  52. #ifndef isoctal
  53. #define isoctal(c) ((char)(c) &gt;= '0') &amp;&amp; ((char)(c) &lt;= '7')
  54. #endif
  55. #ifndef nomatch
  56. #define nomatch(c,o) ((char)(c) != (char)(o)) &amp;&amp; ((int)(c) != EOF)
  57. #endif
  58. #ifndef iskey
  59. #define iskey(c) ((int)(c) &lt; 0x20) || ((int)(c) &gt; 0x7E)
  60. #endif
  61. /*====================================================================*
  62. * end definitions;
  63. *--------------------------------------------------------------------*/
  64. #endif
  65. </pre>
  66. <div class='footerlink'>
  67. [<a href='channel.h.html' title=' channel.h '>PREV</a>]
  68. [<a href='toolkit.html' title=' Index '>HOME</a>]
  69. [<a href='chipset.h.html' title=' chipset.h '>NEXT</a>]
  70. </div>
  71. </body>
  72. </html>