Assimp
v4.1. (December 2018)
|
Represents an UTF-8 string, zero byte terminated. More...
Public Attributes | |
char | data [MAXLEN] |
String buffer. More... | |
size_t | length |
Length of the string (excluding the terminal \0). More... | |
Represents an UTF-8 string, zero byte terminated.
The length of such a string is limited to MAXLEN
bytes (excluding the terminal \0).
The character set of an aiString is explicitly defined to be UTF-8. This Unicode transformation was chosen in the belief that most strings in 3d model files are limited to ASCII characters, thus the character set needed to be ASCII compatible.
Most text file loaders provide proper Unicode input file handling, special unicode characters are correctly transcoded to UTF-8 and are kept throughout the libraries' import pipeline.
For most applications, it will be absolutely sufficient to interpret the aiString as ASCII data and work with it as one would work with a plain char[].
To access an aiString from D you might want to use something like the
char[] importAiString( aiString* s ) { return s.data[ 0 .. s.length ];
char assimp::types::aiString::data[MAXLEN] |
String buffer.
Size limit is MAXLEN
.
size_t assimp::types::aiString::length |
Length of the string (excluding the terminal \0).
This is not the logical length of strings containing UTF-8 multibyte sequences, but the number of bytes from the beginning of the string to its end.