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

📄 ctype.htm

📁 这是关于VC++中的STL容器的资料,包括了STL容器各个类之间关系以及类的说明
💻 HTM
📖 第 1 页 / 共 2 页
字号:

Parameters         <em>c</em> is the character to be converted.

Returns            This method returns the converted character.

</pre>

<h3>Description</h3>
<p>
The do_tolower() method converts the character argument <em>c</em> to
upper case. The method returns the converted character. If no conversion is
possible the argument is returned.
</p>
<hr>

<pre>
<a name="do-toupper2">
Method             do_toupper()</a>

Access             Protected

Classification     Modifier

Syntax             virtual charT do_toupper(charT* low,
                                            const charT* high) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.


Returns            This method returns high.

</pre>

<h3>Description</h3>
<p>
The do_tolower() method converts each character in the character sequence
[low, high) argument to upper case. Each character in the range is replaced
with the upper case character. The method returns <em>high</em>.
</p>
<hr>

<pre>
<a name="do-widen1">
Method             do_widen()</a>

Access             Protected

Classification     Modifier

Syntax             virtual charT do_widen(charT c) const;

Parameters         <em>c</em> is the character to be converted.

Returns            This method returns the transformed character.

</pre>

<h3>Description</h3>
<p>
The do_tolower() method applies the simplest transformation from a char value
to the corresponding charT value. 
</p>
<hr>

<pre>
<a name="do-widen2">
Method             do_widen()</a>

Access             Protected

Classification     Modifier

Syntax             virtual const charT* do_widen(const char* low,
                                                 const char* high,                                                 
                                                 charT* dest) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.

                   <em>dest</em> is the destination of the results.

Returns            This method returns high.

</pre>


<h3>Description</h3>
<p>
The do_narrow() method applies the simplest transformation from a sequence of char
values to the corresponding charT values if they exist. The method returns the 
transformed values in <em>dest</em> argument. The method returns <em>high</em>.
</p>
<hr>

<pre>
<a name="is1">
Method             is()</a>

Access             Public

Classification     Accessor

Syntax             bool is(mask m, charT c) const;

Parameters         <em>m</em> is one of the mask available from the ctype_base.

                   <em>c</em> is the character to be classified.

Return             This method returns true if the character matches the
                   classification indicated by the mask.

</pre>

<h3>Description</h3>
<p>
The do_is() method returns do_is(m, c).
</p>
<hr>

<pre>
<a name="is2">
Method             is()</a>

Access             Public

Classification     Accessor

Syntax             const charT* is(const charT* low,
                                   const charT* high,
                                   mask* vec) const;

Parameters         <em>low</em> is the beginning of a sequence of characters.

                   <em>high</em> is the end of a sequence of characters.

                   <em>vec</em> is a vector of masks.

Return             This method returns the high argument.

</pre>

<h3>Description</h3>
<p>
The do_is() method returns do_is(low, high, vec).
</p>
<hr>

<pre>
<a name="scan-is">
Method             scan_is()</a>

Access             Public

Classification     Accessor

Syntax             const charT* scan_is(mask m,
                                        const charT* low,
                                        const charT* high) const;

Parameters         <em>m</em> is one of the mask available from the ctype_base.


                   <em>low</em> is the beginning of a sequence of characters.

                   <em>high</em> is the end of a sequence of characters.


Returns            This method returns the first character in the
                   range that matches the classification indicated
                   by the mask m.

</pre>

<h3>Description</h3>
<p>
The scan_is() method returns do_scan_is(m, low, high).
</p>
<hr>

<pre>
<a name="scan-not">
Method             scan_not()</a>

Access             Public

Classification     Accessor

Syntax             const charT* scan_not(mask m,
                                         const charT* low,
                                         const charT* high) const;

Parameters         <em>m</em> is one of the mask available from the ctype_base.


                   <em>low</em> is the beginning of a sequence of characters.

                   <em>high</em> is the end of a sequence of characters.


Returns            This method returns the first character in the
                   range that does not match the classification
                   indicated by the mask m.

</pre>

<h3>Description</h3>
<p>
The scan_not() method returns scan_not(m, low, high).
</p>
<hr>

<pre>
<a name="narrow1">
Method             narrow()</a>

Access             Public

Classification     Modifier

Syntax             char narrow(charT c, char dfault) const;

Parameters         <em>c</em> is the character to be transformed.

                   <em>dfault</em> is character that is returned if no
                   transformation takes places.

Returns            This method returns the transformed value or
                   dfault if no transformation takes place.

</pre>

<h3>Description</h3>
<p>
The narrow() method returns do_narrow(c, dfault).
</p>
<hr>

<pre>
<a name="narrow2">
Method             narrow()</a>

Access             Public

Classification     Modifier

Syntax             const charT* narrow(const charT* low,
                                       const charT* high,
                                       char dfault,
                                       char* to) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.

                   <em>dfault</em> is used as a default transformation.

                   <em>to</em> is the destination of the results.

Returns            This method returns high.

</pre>


<h3>Description</h3>
<p>
The narrow() method returns do_narrow(low, high, dfault,to).
</p>
<hr>

<pre>
<a name="tolower1">
Method             tolower()</a>

Access             Public

Classification     Modifier

Syntax             charT tolower(charT c) const;

Parameters         <em>c</em> is the character to be converted.

Returns            This method returns the converted character.

</pre>

<h3>Description</h3>
<p>
The tolower() method returns do_tolower(c).
</p>
<hr>

<pre>
<a name="tolower2">
Method             tolower()</a>

Access             Public

Classification     Modifier

Syntax             charT tolower(charT* low,
                                 const charT* high) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.


Returns            This method returns high.

</pre>

<h3>Description</h3>
<p>
The tolower() method returns do_tolower(low, high).
</p>
<hr>

<pre>
<a name="toupper1">
Method             toupper()</a>

Access             Public

Classification     Modifier

Syntax             charT toupper(charT c) const;

Parameters         <em>c</em> is the character to be converted.

Returns            This method returns the converted character.

</pre>

<h3>Description</h3>
<p>
The toupper() method returns do_toupper(c).
</p>
<hr>

<pre>
<a name="toupper2">
Method             toupper()</a>

Access             Public

Classification     Modifier

Syntax             charT do_toupper(charT* low,
                                    const charT* high) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.


Returns            This method returns high.

</pre>

<h3>Description</h3>
<p>
The toupper() method returns do_toupper(low, high).
</p>
<hr>

<pre>
<a name="widen1">
Method             widen()</a>

Access             Public

Classification     Modifier

Syntax             charT widen(charT c) const;

Parameters         <em>c</em> is the character to be converted.

Returns            This method returns the transformed character.

</pre>

<h3>Description</h3>
<p>
The widen() method returns do_widen(c).
</p>
<hr>

<pre>
<a name="widen2">
Method             widen()</a>

Access             Public

Classification     Modifier

Syntax             const charT* widen(const char* low,
                                      const char* high,
                                      charT* to) const;

Parameters         <em>low</em> is the beginning of a sequence of
                   characters.

                   <em>high</em> is the end of a sequence of
                   characters.

                   <em>to</em> is the destination of the results.

Returns            This method returns high.

</pre>


<h3>Description</h3>
<p>
The widen() method returns do_widen(low, high, to).
</p>
<hr>

<a name="crd"><h2>The Class Relationship Diagram for ctype</h2></a>
<img src="ctype.gif">
<hr>
</body>
</html>



⌨️ 快捷键说明

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