std.cfg: Add std::string::copy() and std::wstring::copy() (#2041)

Reference:
https://en.cppreference.com/w/cpp/string/basic_string/copy
http://www.cplusplus.com/reference/string/string/copy/
This commit is contained in:
Sebastian 2019-07-29 18:57:50 +02:00 committed by GitHub
parent 9e738db435
commit 2a3567cb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -6576,6 +6576,29 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<not-uninit/>
</arg>
</function>
<!-- size_type std::string::copy( CharT* dest, size_type count, size_type pos = 0) const; -->
<!-- size_type std::wstring::copy( CharT* dest, size_type count, size_type pos = 0) const; -->
<function name="std::string::copy,std::wstring::copy">
<noreturn>false</noreturn>
<returnValue type="std::size_t"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="out">
<not-null/>
<!-- TODO: #8335 arg2 is the number of characters, not bytes. -->
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
<arg nr="3" direction="in" default="0">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<!-- void swap (string& str); -->
<function name="std::string::swap">
<noreturn>false</noreturn>
@ -7755,6 +7778,7 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init
<podtype name="intmax_t,std::intmax_t" sign="s"/>
<podtype name="uintmax_t,std::uintmax_t" sign="u"/>
<podtype name="size_t" sign="u"/>
<podtype name="std::size_t" sign="u"/>
<podtype name="std::string::size_type" sign="u"/>
<podtype name="std::wstring::size_type" sign="u"/>
<podtype name="std::u16string::size_type" sign="u"/>