名前空間
変種
操作

「cpp/string/char traits/length」の版間の差分

提供: cppreference.com
< cpp‎ | string‎ | char traits
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
(Use {{lc}}. Update links. Various fixes.)
2行: 2行:
 
{{cpp/string/char_traits/title|length}}
 
{{cpp/string/char_traits/title|length}}
 
{{cpp/string/char_traits/navbar}}
 
{{cpp/string/char_traits/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item |  
+
{{|  
 
std::size_t length( const CharT* s );
 
std::size_t length( const CharT* s );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
 
{{tr|です{{tt|s}}が指す文字列の長さ、終端のnull文字({{c|Char()}})の位置を返します。.|Returns the length of the character sequence pointed to by {{tt|s}}, that is, the position of the terminating null character ({{c|Char()}}).}}
 
{{tr|です{{tt|s}}が指す文字列の長さ、終端のnull文字({{c|Char()}})の位置を返します。.|Returns the length of the character sequence pointed to by {{tt|s}}, that is, the position of the terminating null character ({{c|Char()}}).}}
  
 
===パラメータ===
 
===パラメータ===
{{param list begin}}
+
{{begin}}
{{param list item | s |{{tr| の長さを返すために文字配列へのポインタ| pointer to a character sequence to return length of}}}}
+
{{| s |{{tr| の長さを返すために文字配列へのポインタ| pointer to a character sequence to return length of}}}}
{{param list end}}
+
{{end}}
  
 
===値を返します===
 
===値を返します===

2013年7月2日 (火) 15:58時点における版

std::size_t length( const CharT* s );
ですsが指す文字列の長さ、終端のnull文字(Char())の位置を返します。.
Original:
Returns the length of the character sequence pointed to by s, that is, the position of the terminating null character (Char()).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

パラメータ

s -
の長さを返すために文字配列へのポインタ
Original:
pointer to a character sequence to return length of
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

文字列の長さはsによって指さ.
Original:
The length of character sequence pointed to by s.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

例外

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

複雑

リニア.
Original:
Linear.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.