public member function
<locale>
std::codecvt::unshiftresult unshift (state_type& state, extern_type* to, extern_type* to_limit, extern_type*& to_next) const;
Unshift translation state
Writes into to the sequence of character needed to unshift the state of state.During a character encoding translation (such as the one initiated by codecvt::out), the state may have been shifted to some state other than the state by default, notably when the destination range could not absorb all the characters produced by the translation. By calling this function with additional storage, the remainder of the sequence needed to return the shift state to its default state is written to to (taking up to to_limit).
When the function returns, to_next points to one beyond the last element successfully written.
During its operation, this function simply calls the virtual protected member codecvt::do_unshift, which is the member function in charge of performing the actions described above.
Internally, this function simply calls the virtual protected member do_unshift, which behaves as described above by default.
[to,to_limit)
, which contains all the characters between to and to_limit, including the character pointed by to but not the character pointed by to_limit.
int
value result ok 0
Conversion successful: all characters needed to unshift the state were successfully wirtten. partial 1
Partial conversion: the destination sequence [to,to_limit)
is not long enough.
[to,to_limit)
has been filled with the partial result. The function may be called again with additional storage to obtain more unshift characters. error 2
Conversion error: Some unspecified error occurred, such as state in an invalid state. noconv 3
No conversion: The current state of state does not need to be unshifted.
[to,to_limit)
are modified.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4