⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wctype.html

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A HREF="#wctype"><CODE>wctype</CODE></A>.</P><H2><A NAME="iswdigit"><CODE>iswdigit</CODE></A></H2><PRE>int <B>iswdigit</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of:</P><PRE>0 1 2 3 4 5 6 7 8 9</PRE><H2><A NAME="iswgraph"><CODE>iswgraph</CODE></A></H2><PRE>int <B>iswgraph</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE>is any character for which either<A HREF="#iswalnum"><CODE>iswalnum</CODE></A> or<A HREF="#iswpunct"><CODE>iswpunct</CODE></A> returns nonzero.</P><H2><A NAME="iswlower"><CODE>iswlower</CODE></A></H2><PRE>int <B>iswlower</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of:</P><PRE>a b c d e f g h i j k l m n o p q r s t u v w x y z</PRE><P> or any other locale-specific lowercase character.</P><H2><A NAME="iswprint"><CODE>iswprint</CODE></A></H2><PRE>int <B>iswprint</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE>is <CODE><I>space</I></CODE>, a character for which<A HREF="#iswgraph"><CODE>iswgraph</CODE></A>returns nonzero, or an implementation-definedsubset of the characters for which<A HREF="#iswspace"><CODE>iswspace</CODE></A>returns nonzero.</P><H2><A NAME="iswpunct"><CODE>iswpunct</CODE></A></H2><PRE>int <B>iswpunct</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of:</P><PRE>! " # % &amp; ' ( ) ; &lt;= &gt; ? [ \ ] * + , -. / : ^ _ { | } ~</PRE><P>or any other implementation-defined punctuation character.</P><H2><A NAME="iswspace"><CODE>iswspace</CODE></A></H2><PRE>int <B>iswspace</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of:</P><PRE><I>CR FF HT NL VT space</I></PRE><P>or any other locale-specific space character.</P><H2><A NAME="iswupper"><CODE>iswupper</CODE></A></H2><PRE>int <B>iswupper</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of:</P><PRE>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</PRE><P>or any other locale-specific uppercase character.</P><H2><A NAME="iswxdigit"><CODE>iswxdigit</CODE></A></H2><PRE>int <B>iswxdigit</B>(wint_t c);</PRE><P>The function returns nonzero if <CODE>c</CODE> is any of</P><PRE>0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F</PRE><H2><A NAME="towctrans"><CODE>towctrans</CODE></A></H2><PRE>wint_t <B>towctrans</B>(wint_t c, wctrans_t category);</PRE><P>The function returns the transformation of the character <CODE>c</CODE>,using the transform in the category <CODE>category</CODE>. The value of<CODE>category</CODE> must have been returnedby an earlier successful call to<A HREF="#wctrans"><CODE>wctrans</CODE></A>.</P><H2><A NAME="towlower"><CODE>towlower</CODE></A></H2><PRE>wint_t <B>towlower</B>(wint_t c);</PRE><P>The function returns the corresponding lowercase letterif one exists and if<CODE><A HREF="#iswupper">iswupper</A>(c)</CODE>;otherwise, it returns <CODE>c</CODE>.</P><H2><A NAME="towupper"><CODE>towupper</CODE></A></H2><PRE>wint_t <B>towupper</B>(wint_t c);</PRE><P>The function returns the corresponding uppercase letterif one exists and if<CODE><A HREF="#iswlower">iswlower</A>(c)</CODE>;otherwise, it returns <CODE>c</CODE>.</P><H2><A NAME="wctrans"><CODE>wctrans</CODE></A></H2><PRE>wctrans_t <B>wctrans</B>(const char *property);</PRE><P>The function determines a mapping from one set of wide-charactercodes to another. If the<A HREF="locale.html#LC_CTYPE"><CODE>LC_CTYPE</CODE></A>category of the current<A HREF="locale.html#locale">locale</A>does not define a mapping whose name matchesthe property string <CODE>property</CODE>, the function returns zero.Otherwise, it returns a nonzero value suitablefor use as the second argument to a subsequent call to<A HREF="#towctrans"><CODE>towctrans</CODE></A>.</P><P>The following pairs of calls have the same behavior in all<A HREF="locale.html#locale">locales</A>(but an implementation can define additional mappings even in the<A HREF="locale.html#C locale"><CODE>"C"</CODE></A> locale):</P><PRE><A HREF="#towlower">towlower</A>(c) <B>same as</B> towctrans(c, wctrans("tolower"))<A HREF="#towupper">towupper</A>(c) <B>same as</B> towctrans(c, wctrans("toupper"))</PRE><H2><A NAME="wctrans_t"><CODE>wctrans_t</CODE></A></H2><PRE>typedef <I>s_type</I> <B>wctrans_t</B>;</PRE><P>The type is the scalar type <CODE><I>s-type</I></CODE>that can represent locale-specific character mappings,as specified by the return value of<A HREF="#wctrans"><CODE>wctrans</CODE></A>.</P><H2><A NAME="wctype"><CODE>wctype</CODE></A></H2><PRE>wctype_t <B>wctype</B>(const char *property);</PRE><PRE>wctrans_t wctrans(const char *property);</PRE><P>The function determines a classification rulefor wide-character codes. If the<A HREF="locale.html#LC_CTYPE"><CODE>LC_CTYPE</CODE></A>category of the current<A HREF="locale.html#locale">locale</A>does not define a classification rule whose name matchesthe property string <CODE>property</CODE>, the function returns zero.Otherwise, it returns a nonzero value suitablefor use as the second argument to a subsequent call to<A HREF="#towctrans"><CODE>towctrans</CODE></A>.</P><P>The following pairs of calls have the same behavior in all<A HREF="locale.html#locale">locales</A> (but an implementationcan define additional classification rules even in the<A HREF="locale.html#C locale"><CODE>"C"</CODE></A> locale):</P><PRE><A HREF="#iswalnum">iswalnum</A>(c)  <B>same as</B> iswctype(c, wctype("alnum"))<A HREF="#iswalpha">iswalpha</A>(c)  <B>same as</B> iswctype(c, wctype("alpha"))<A HREF="#iswcntrl">iswcntrl</A>(c)  <B>same as</B> iswctype(c, wctype("cntrl"))<A HREF="#iswdigit">iswdigit</A>(c)  <B>same as</B> iswctype(c, wctype("digit"))<A HREF="#iswgraph">iswgraph</A>(c)  <B>same as</B> iswctype(c, wctype("graph"))<A HREF="#iswlower">iswlower</A>(c)  <B>same as</B> iswctype(c, wctype("lower"))<A HREF="#iswprint">iswprint</A>(c)  <B>same as</B> iswctype(c, wctype("print"))<A HREF="#iswpunct">iswpunct</A>(c)  <B>same as</B> iswctype(c, wctype("punct"))<A HREF="#iswspace">iswspace</A>(c)  <B>same as</B> iswctype(c, wctype("space"))<A HREF="#iswupper">iswupper</A>(c)  <B>same as</B> iswctype(c, wctype("upper"))<A HREF="#iswxdigit">iswxdigit</A>(c) <B>same as</B> iswctype(c, wctype("xdigit"))</PRE><H2><A NAME="wctype_t"><CODE>wctype_t</CODE></A></H2><PRE>typedef <I>s_type</I> <B>wctype_t</B>;</PRE><P>The type is the scalar type <CODE><I>s-type</I></CODE> that can representlocale-specific character classifications,as specified by the return value of<A HREF="#wctype"><CODE>wctype</CODE></A>.</P><H2><A NAME="wint_t"><CODE>wint_t</CODE></A></H2><PRE>typedef <I>i_type</I> <B>wint_t</B>;</PRE><P>The type is the integer type <CODE><I>i_type</I></CODE>that can represent all values of type<A HREF="stddef.html#wchar_t"><CODE>wchar_t</CODE></A>as well as the value of the macro<A HREF="#WEOF"><CODE>WEOF</CODE></A>,and that doesn't change when<A HREF="express.html#Promoting">promoted</A>.</P><HR><P>See also the<B><A HREF="index.html#Table of Contents">Table of Contents</A></B> and the<B><A HREF="_index.html">Index</A></B>.</P><P><I><A HREF="crit_pb.html">Copyright</A> &#169; 1989-2002by P.J. Plauger and Jim Brodie. All rights reserved.</I></P><!--V4.01:1125--></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -