mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027676: Foundation Classes - define Standard_ExtCharacter, Standard_Utf16Char using C++11 types char16_t
This commit is contained in:
@@ -447,7 +447,7 @@ Storage_BaseDriver& FSD_CmpFile::PutCharacter(const Standard_Character aValue)
|
||||
|
||||
Storage_BaseDriver& FSD_CmpFile::PutExtCharacter(const Standard_ExtCharacter aValue)
|
||||
{
|
||||
myStream << aValue << " ";
|
||||
myStream << (short )aValue << " ";
|
||||
if (myStream.bad()) Storage_StreamWriteError::Raise();
|
||||
return *this;
|
||||
}
|
||||
@@ -539,8 +539,9 @@ Storage_BaseDriver& FSD_CmpFile::GetCharacter(Standard_Character& aValue)
|
||||
|
||||
Storage_BaseDriver& FSD_CmpFile::GetExtCharacter(Standard_ExtCharacter& aValue)
|
||||
{
|
||||
if (!(myStream >> aValue)) Storage_StreamTypeMismatchError::Raise();
|
||||
|
||||
short aChar = 0;
|
||||
if (!(myStream >> aChar)) Storage_StreamTypeMismatchError::Raise();
|
||||
aValue = aChar;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@@ -443,7 +443,7 @@ Storage_BaseDriver& FSD_File::PutCharacter(const Standard_Character aValue)
|
||||
|
||||
Storage_BaseDriver& FSD_File::PutExtCharacter(const Standard_ExtCharacter aValue)
|
||||
{
|
||||
myStream << aValue << " ";
|
||||
myStream << (short )aValue << " ";
|
||||
if (myStream.bad()) Storage_StreamWriteError::Raise();
|
||||
return *this;
|
||||
}
|
||||
@@ -535,8 +535,9 @@ Storage_BaseDriver& FSD_File::GetCharacter(Standard_Character& aValue)
|
||||
|
||||
Storage_BaseDriver& FSD_File::GetExtCharacter(Standard_ExtCharacter& aValue)
|
||||
{
|
||||
if (!(myStream >> aValue)) Storage_StreamTypeMismatchError::Raise();
|
||||
|
||||
short aChar = 0;
|
||||
if (!(myStream >> aChar)) Storage_StreamTypeMismatchError::Raise();
|
||||
aValue = aChar;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user