git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53994
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
private:
// UTF-7 decoder/encoder may be in direct mode or in shifted mode after a
// '+' (and until the '-' or any other non-base64 character)
private:
// UTF-7 decoder/encoder may be in direct mode or in shifted mode after a
// '+' (and until the '-' or any other non-base64 character)
- Direct, // pass through state
- Shifted // after a '+' (and before '-')
+ enum Mode
+ {
+ Direct, // pass through state
+ Shifted // after a '+' (and before '-')
+ };
};
// the current decoder state: this is only used by ToWChar() if srcLen
// parameter is not wxNO_LEN, when working on the entire NUL-terminated
// strings we neither update nor use the state
};
// the current decoder state: this is only used by ToWChar() if srcLen
// parameter is not wxNO_LEN, when working on the entire NUL-terminated
// strings we neither update nor use the state
+ class DecoderState : StateMode
{
private:
// current state: this one is private as we want to enforce the use of
{
private:
// current state: this one is private as we want to enforce the use of
// encoder state is simpler as we always receive entire Unicode characters
// on input
// encoder state is simpler as we always receive entire Unicode characters
// on input
+ class EncoderState : StateMode