std::regex_search
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <regex>
|
||
template< class BidirIt, class Alloc, class CharT, class Traits > bool regex_search( BidirIt first, BidirIt last, std::match_results<BidirIt,Alloc>& m, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(1) | (seit C++11) |
template< class Alloc, class CharT, class Traits > bool regex_search( const CharT* str, std::match_results<BidirIt,Alloc>& m, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(2) | (seit C++11) |
template< class STraits, class SAlloc, class Alloc, class CharT, class Traits > bool regex_search( const std::basic_string<CharT,STraits,SAlloc>& s, std::match_results< typename std::basic_string<CharT,STraits,SAlloc>::const_iterator, Alloc >& m, const std::basic_regex<CharT, Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(3) | (seit C++11) |
template< class BidirIt, class CharT, class Traits > bool regex_search( BidirIt first, BidirIt last, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(4) | (seit C++11) |
template< class CharT, class Traits > bool regex_search( const CharT* str, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(5) | (seit C++11) |
template< class STraits, class SAlloc, class CharT, class Traits > bool regex_search( const std::basic_string<CharT,STraits,SAlloc>& s, const std::basic_regex<CharT,Traits>& e, std::regex_constants::match_flag_type flags = std::regex_constants::match_default ); |
(6) | (seit C++11) |
1)
Legt fest, ob es eine Übereinstimmung zwischen der regulären ausdrückliche
e und einige Teilfolge in der Ziel-Zeichenfolge [first,last). Spiel Ergebnisse sind in m zurückgegeben .Original:
Determines if there is a match between the regular express
e and some subsequence in the target character sequence [first,last). Match results are returned in m.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
Versandkosten std :: regex_search (str, str + std :: char_traits <charT> :: length (str), m, e, flags) .
Original:
Returns std::regex_search(str, str + std::char_traits<charT>::length(str), m, e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
3)
Versandkosten std :: regex_search (s.begin (), s.end (), m, e, flags) .
Original:
Returns std::regex_search(s.begin(), s.end(), m, e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
4)
Das gleiche wie (1), das Weglassen der Spielergebnisse .
Original:
The same as (1), omitting the match results.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
5)
Versandkosten std :: regex_search (str, str + std :: char_traits <charT> :: length (str), e, flags) .
Original:
Returns std::regex_search(str, str + std::char_traits<charT>::length(str), e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
6)
Versandkosten std :: regex_search (s.begin (), s.end (), e, flags) .
Original:
Returns std::regex_search(s.begin(), s.end(), e, flags).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| first, last | - | das Ziel Zeichenbereich
Original: the target character range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| m | - | die Spielergebnisse
Original: the match results The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| str | - | ein Ziel Charakter nullterminierten C-String
Original: a target character null-terminated C-style string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| s | - | ein Ziel Charakter std :: basic_string
Original: a target character std::basic_string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| e | - | die std :: regex
Original: the std::regex The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| flags | - | die Match-Flags
Original: the match flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| Type requirements | ||
-BidirIt must meet the requirements of BidirectionalIterator.
| ||
-Alloc must meet the requirements of Allocator.
| ||
Rückgabewert
true kehrt, wenn eine Übereinstimmung irgendwo in der Zielsequenz vorhanden ist, ansonsten false .Original:
Returns
true if a match exists somewhere in the target sequence, false otherwise.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.