Namensräume
Varianten
Aktionen

std::basic_regex::assign

Aus cppreference.com
< cpp‎ | regex‎ | basic regex

 
 
Reguläre Ausdrücke Bibliothek
Classes
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex(C++11)
sub_match(C++11)
match_results(C++11)
Algorithmen
Original:
Algorithms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_match(C++11)
regex_search(C++11)
regex_replace(C++11)
Iteratoren
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_iterator(C++11)
regex_token_iterator(C++11)
Ausnahmen
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_error(C++11)
Traits
Original:
Traits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
regex_traits(C++11)
Konstanten
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
syntax_option_type(C++11)
match_flag_type(C++11)
error_type(C++11)
 
std::basic_regex
Member-Funktionen
Original:
Member Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::basic_regex
basic_regex::~basic_regex
basic_regex::operator=
basic_regex::assign
Beobachter
Original:
Observers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::mark_count
basic_regex::flags
Locale
Original:
Locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::getloc
basic_regex::imbue
Modifiers
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex::swap
Konstanten
Original:
Constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_regex constants
Non-member-Funktionen
Original:
Non-member Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_regex)
 
basic_regex& assign( const basic_regex& other );
(1) (seit C++11)
basic_regex& assign( basic_regex&& that );
(2) (seit C++11)
basic_regex& assign( const CharT* s,
                     flag_type f = std::regex_constants::ECMAScript );
(3) (seit C++11)
basic_regex& assign( const charT* ptr, size_t count,
                     flag_type f = regex_constants::ECMAScript );
(4) (seit C++11)
template< class ST, class SA >

basic_regex& assign( const std::basic_string<CharT,ST,SA>& str,

                     flag_type f = std::regex_constants::ECMAScript );
(5) (seit C++11)
template< class InputIt >

basic_regex& assign( InputIt first, InputIt last,

                     flag_type f = std::regex_constants::ECMAScript );
(6) (seit C++11)
basic_regex& assign( std::initializer_list<CharT> ilist,
                     flag_type f = std::regex_constants::ECMAScript );
(7) (seit C++11)
Weist die Inhalte mit dem regulären Ausdruck .
Original:
Assigns the contents to the regular expression.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Weist den Inhalt other. flags() und mark_count() entsprechen den Werten von other.flags() und other.mark_count() nach dem Aufruf .
Original:
Assigns the contents of other. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() after the call.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Weist den Inhalt other mit move-Semantik. flags() und mark_count() entsprechen den Werten von other.flags() und other.mark_count() vor der Zuweisung. Nach dem Aufruf ist other in einem gültigen, aber nicht näher Zustand .
Original:
Assigns the contents of other using move semantics. flags() and mark_count() are equivalent to the values of other.flags() and other.mark_count() before the assignment. After the call, other is in a valid, but unspecified state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3-7)
Weist eine Folge von Zeichen mit dem regulären Ausdruck. Die Syntax flags sind f gesetzt. mark_count() gibt die Anzahl der markierten Teilausdrücke innerhalb des resultierenden Teilausdruck nach dem Aufruf .
Original:
Assigns a sequence of characters to the regular expression. The syntax flags are set to f. mark_count() returns the number of marked subexpressions within the resulting subexpression after the call.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Weist eine null-terminierte Zeichenkette, auf die s .
Original:
Assigns a null-terminated string 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.
4)
Weist eine Sequenz von count Zeichen, auf die durch s .
Original:
Assigns a sequence of count characters, 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.
5)
Weist die Zeichenfolge str .
Original:
Assigns the string str.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Weist die Zeichen im Bereich [first, last) .
Original:
Assigns the characters in the range [first, last).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
7)
Weist die Zeichen in der Initialisierungsliste ilist .
Original:
Assigns the characters in the initializer list ilist.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

other -
anderen regulären Ausdruck zuweisen
Original:
another regular expression to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
s -
Zeiger auf eine Zeichenfolge zugeordnet wird
Original:
pointer to a character sequence to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
str -
bespannen zuweisen
Original:
string to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
first, last -
der Bereich von Zeichen zuordnen
Original:
the range of characters to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ilist -
Initialisierungsliste mit Zeichen zuordnen
Original:
initializer list containing characters to assign
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
InputIt must meet the requirements of InputIterator.

[Bearbeiten] Rückgabewert

*this

[Bearbeiten] Ausnahmen

1)
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
noexcept specification:  
noexcept
  (seit C++11)
3-7)
std::regex_error wenn die gelieferte regulären Ausdruck ist nicht gültig. Das Objekt wird in diesem Fall nicht geändert .
Original:
std::regex_error if the supplied regular expression is not valid. The object is not modified in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

ordnet die Inhalte
Original:
assigns the contents
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(öffentliche Elementfunktion) [edit]