<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.ywrobot.net/index.php?action=history&amp;feed=atom&amp;title=WCharacter.h</id>
		<title>WCharacter.h - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.ywrobot.net/index.php?action=history&amp;feed=atom&amp;title=WCharacter.h"/>
		<link rel="alternate" type="text/html" href="http://wiki.ywrobot.net/index.php?title=WCharacter.h&amp;action=history"/>
		<updated>2026-05-14T11:01:46Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.ywrobot.net/index.php?title=WCharacter.h&amp;diff=77&amp;oldid=prev</id>
		<title>YWrobot CYB：创建页面，内容为“&lt;pre style=&quot;color:blue&quot;&gt; /*  WCharacter.h - Character utility functions for Wiring &amp; Arduino  Copyright (c) 2010 Hernando Barragan.  All right reserved.    This libr...”</title>
		<link rel="alternate" type="text/html" href="http://wiki.ywrobot.net/index.php?title=WCharacter.h&amp;diff=77&amp;oldid=prev"/>
				<updated>2016-04-25T02:11:19Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;pre style=&amp;quot;color:blue&amp;quot;&amp;gt; /*  WCharacter.h - Character utility functions for Wiring &amp;amp; Arduino  Copyright (c) 2010 Hernando Barragan.  All right reserved.    This libr...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre style=&amp;quot;color:blue&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 WCharacter.h - Character utility functions for Wiring &amp;amp; Arduino&lt;br /&gt;
 Copyright (c) 2010 Hernando Barragan.  All right reserved.&lt;br /&gt;
 &lt;br /&gt;
 This library is free software; you can redistribute it and/or&lt;br /&gt;
 modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
 License as published by the Free Software Foundation; either&lt;br /&gt;
 version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
 &lt;br /&gt;
 This library is distributed in the hope that it will be useful,&lt;br /&gt;
 but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU&lt;br /&gt;
 Lesser General Public License for more details.&lt;br /&gt;
 &lt;br /&gt;
 You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
 License along with this library; if not, write to the Free Software&lt;br /&gt;
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
#ifndef Character_h&lt;br /&gt;
#define Character_h&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;ctype.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// WCharacter.h prototypes&lt;br /&gt;
inline boolean isAlphaNumeric(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isAlpha(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isAscii(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isWhitespace(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isControl(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isDigit(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isGraph(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isLowerCase(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isPrintable(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isPunct(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isSpace(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isUpperCase(int c) __attribute__((always_inline));&lt;br /&gt;
inline boolean isHexadecimalDigit(int c) __attribute__((always_inline));&lt;br /&gt;
inline int toAscii(int c) __attribute__((always_inline));&lt;br /&gt;
inline int toLowerCase(int c) __attribute__((always_inline));&lt;br /&gt;
inline int toUpperCase(int c)__attribute__((always_inline));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for an alphanumeric character. &lt;br /&gt;
// It is equivalent to (isalpha(c) || isdigit(c)).&lt;br /&gt;
inline boolean isAlphaNumeric(int c) &lt;br /&gt;
{&lt;br /&gt;
  return ( isalnum(c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for an alphabetic character. &lt;br /&gt;
// It is equivalent to (isupper(c) || islower(c)).&lt;br /&gt;
inline boolean isAlpha(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isalpha(c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks whether c is a 7-bit unsigned char value &lt;br /&gt;
// that fits into the ASCII character set.&lt;br /&gt;
inline boolean isAscii(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isascii (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for a blank character, that is, a space or a tab.&lt;br /&gt;
inline boolean isWhitespace(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isblank (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for a control character.&lt;br /&gt;
inline boolean isControl(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( iscntrl (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for a digit (0 through 9).&lt;br /&gt;
inline boolean isDigit(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isdigit (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for any printable character except space.&lt;br /&gt;
inline boolean isGraph(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isgraph (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for a lower-case character.&lt;br /&gt;
inline boolean isLowerCase(int c)&lt;br /&gt;
{&lt;br /&gt;
  return (islower (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for any printable character including space.&lt;br /&gt;
inline boolean isPrintable(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isprint (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for any printable character which is not a space &lt;br /&gt;
// or an alphanumeric character.&lt;br /&gt;
inline boolean isPunct(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( ispunct (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for white-space characters. For the avr-libc library, &lt;br /&gt;
// these are: space, formfeed ('\f'), newline ('\n'), carriage &lt;br /&gt;
// return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').&lt;br /&gt;
inline boolean isSpace(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isspace (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for an uppercase letter.&lt;br /&gt;
inline boolean isUpperCase(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isupper (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Checks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 &lt;br /&gt;
// 8 9 a b c d e f A B C D E F.&lt;br /&gt;
inline boolean isHexadecimalDigit(int c)&lt;br /&gt;
{&lt;br /&gt;
  return ( isxdigit (c) == 0 ? false : true);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Converts c to a 7-bit unsigned char value that fits into the &lt;br /&gt;
// ASCII character set, by clearing the high-order bits.&lt;br /&gt;
inline int toAscii(int c)&lt;br /&gt;
{&lt;br /&gt;
  return toascii (c);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Warning:&lt;br /&gt;
// Many people will be unhappy if you use this function. &lt;br /&gt;
// This function will convert accented letters into random &lt;br /&gt;
// characters.&lt;br /&gt;
&lt;br /&gt;
// Converts the letter c to lower case, if possible.&lt;br /&gt;
inline int toLowerCase(int c)&lt;br /&gt;
{&lt;br /&gt;
  return tolower (c);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Converts the letter c to upper case, if possible.&lt;br /&gt;
inline int toUpperCase(int c)&lt;br /&gt;
{&lt;br /&gt;
  return toupper (c);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#endif&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>YWrobot CYB</name></author>	</entry>

	</feed>