25 #ifndef AURORA_LOCSTRING_H 26 #define AURORA_LOCSTRING_H 37 class SeekableReadStream;
99 typedef std::map<uint32, Common::UString>
StringMap;
115 #endif // AURORA_LOCSTRING_H
void setString(Language language, LanguageGender gender, const Common::UString &str)
Set the string of that language.
A class holding an UTF-8 string.
void readLocString(Common::SeekableReadStream &stream, uint32 id, uint32 count)
Read a LocString out of a stream.
const Common::UString & getFirstString() const
Get the first available string.
uint32 getID() const
Return the string ID / StrRef.
uint32 getWrittenSize(bool withNullTerminate=false) const
Get the size, the string table will consume after being written.
const Common::UString & getStrRefString() const
Get the string the StrRef points to.
std::map< uint32, Common::UString > StringMap
void setID(uint32 id)
Set the string ID / StrRef.
void swap(LocString &str)
Swap the contents of the LocString with this LocString's.
bool hasString(Language language, LanguageGender gender=kLanguageGenderCurrent) const
Does the LocString have a string of this language?
Basic writing stream interfaces.
Types and functions related to language.
Low-level type definitions to handle fixed width types portably.
Generic interface for a writable data stream.
uint32 _id
The string's ID / StrRef.
uint32 getNumStrings() const
Get the number of strings.
const Common::UString & getString() const
Try to get the most appropriate string.
Pseudo value that means the current language gender.
void readLocSubString(Common::SeekableReadStream &stream)
Read a LocSubString (substring of a LocString in game data) out of a stream.
bool empty() const
Is this localized string empty, without any strings whatsoever?
void readString(uint32 languageID, Common::SeekableReadStream &stream)
Read a string out of a stream.
Interface for a seekable & readable data stream.
void writeLocString(Common::WriteStream &stream, bool withNullTerminate=false) const
Write the LocString to a write stream.