result unshift (state_type& state, extern_type* to, extern_type* to_limit, extern_type*& to_next) const;
[to,to_limit)
,它包含 to 和 to_limit 之間的所有字元,包括 to 指向的字元,但不包括 to_limit 指向的字元。成員常量 | int 值 | result |
---|---|---|
ok | 0 | 轉換成功:所有取消移位狀態所需的字元都已成功寫入。 |
partial | 1 | 部分轉換:目標序列 [to,to_limit) 不夠長。範圍 [to,to_limit) 已被部分結果填滿。可以再次呼叫該函式並提供額外的儲存空間來獲取更多取消移位字元。 |
error | 2 | 轉換錯誤:發生了某種未指定錯誤,例如 state 處於無效狀態。 |
noconv | 3 | 無轉換:state 的當前狀態不需要取消移位。 |
[to,to_limit)
範圍內的所有字元(最多)都會被修改。