mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Convert plUoid's object name to a plString
This commit is contained in:
@ -313,7 +313,7 @@ int plMsgStdStringHelper::PeekBig(std::string & stringref, hsStream* stream, co
|
||||
return stream->GetPosition();
|
||||
}
|
||||
|
||||
int plMsgStdStringHelper::Peek(plString & stringref, hsStream* stream, const UInt32 peekOptions)
|
||||
int plMsgStdStringHelper::Peek(plString & stringref, hsStream* stream, const UInt32 peekOptions)
|
||||
{
|
||||
std::string temp;
|
||||
int pos = Peek(temp, stream, peekOptions);
|
||||
@ -321,7 +321,7 @@ int plMsgStdStringHelper::Peek(plString & stringref, hsStream* stream, const UI
|
||||
return pos;
|
||||
}
|
||||
|
||||
int plMsgStdStringHelper::PeekBig(plString & stringref, hsStream* stream, const UInt32 peekOptions)
|
||||
int plMsgStdStringHelper::PeekBig(plString & stringref, hsStream* stream, const UInt32 peekOptions)
|
||||
{
|
||||
std::string temp;
|
||||
int pos = PeekBig(temp, stream, peekOptions);
|
||||
@ -399,6 +399,20 @@ int plMsgCStringHelper::Peek(char *& str, hsStream* stream, const UInt32 peekOpt
|
||||
return stream->GetPosition();
|
||||
}
|
||||
|
||||
int plMsgCStringHelper::Poke(const plString & str, hsStream* stream, const UInt32 peekOptions)
|
||||
{
|
||||
return Poke(str.c_str(), stream, peekOptions);
|
||||
}
|
||||
|
||||
int plMsgCStringHelper::Peek(plString & str, hsStream* stream, const UInt32 peekOptions)
|
||||
{
|
||||
char * temp = nil;
|
||||
int pos = Peek(temp, stream, peekOptions);
|
||||
str = plString::FromIso8859_1(temp);
|
||||
delete [] temp;
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -190,13 +190,16 @@ struct plMsgXtlStringHelper
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// reads/writes your char * field
|
||||
// reads/writes your char * field (deprecated)
|
||||
|
||||
struct plMsgCStringHelper
|
||||
{
|
||||
static int Poke(const char * str, hsStream* stream, const UInt32 peekOptions=0);
|
||||
// deletes str and reallocates. you must delete [] str;
|
||||
static int Peek(char *& str, hsStream* stream, const UInt32 peekOptions=0);
|
||||
|
||||
static int Poke(const plString & str, hsStream* stream, const UInt32 peekOptions=0);
|
||||
static int Peek(plString & str, hsStream* stream, const UInt32 peekOptions=0);
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user