wstring_convert::from_bytes
將位元組陣列中的寬字串。
wide_string from_bytes(char _Byte);
wide_string from_bytes(const char* _Ptr);
wide_string from_bytes(const byte_string& _Bstr);
wide_string from_bytes(const char* _First, const char* _Last);
參數
參數 |
描述 |
---|---|
_Byte |
要轉換的單一元素位元組序列。 |
_Ptr |
要轉換的字元C-Style, null結尾字元序列。 |
_Bstr |
要轉換的 byte_string 。 |
_First |
將轉換的字元範圍的第一個字元。 |
_Last |
將轉換的字元範圍的最後一個字元。 |
傳回值
寬字串物件由轉換。
備註
如果 轉換狀態。 物件是 not 建構以明確的值,則會設定為其預設值 (初始轉換狀態),在轉換之前。 否則會保持不變。
輸入項目數目成功轉換的在轉換計算物件中。 如果轉換未發生任何錯誤,成員函式會傳回已轉換為字串。 則為,否則為,表示物件是由其字串錯誤訊息的初始設定式,成員函式來傳回寬字串錯誤訊息物件。 否則,成員函式擲回類別 range_error物件。
需求
標題: <cvt/wstring>
命名空間: stdext::cvt