|
Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Macros | |
| #define | AI_SIZEFMT "%zu" |
| #define | ai_snprintf snprintf |
| The portable version of the function snprintf ( C99 standard ), which works on visual studio compilers 2013 and earlier. | |
| #define | INCLUDED_AI_STRINGUTILS_H |
Functions | |
| template<class T > | |
| AI_FORCE_INLINE std::string | ai_decimal_to_hexa (T toConvert) |
| AI_FORCE_INLINE std::string | ai_rgba2hex (int r, int g, int b, int a, bool with_head) |
| translate RGBA to String | |
| AI_FORCE_INLINE std::string | ai_str_toprintable (const char *in, int len, char placeholder='?') |
| Make a string printable by replacing all non-printable characters with the specified placeholder character. | |
| AI_FORCE_INLINE std::string | ai_str_toprintable (const std::string &in, char placeholder='?') |
| Make a string printable by replacing all non-printable characters with the specified placeholder character. | |
| AI_FORCE_INLINE std::string | ai_str_toupper (const std::string &in) |
| Performs a ToLower-operation and return the upper-case string. | |
| AI_FORCE_INLINE float | ai_strtof (const char *begin, const char *end) |
| template<typename T > | |
| AI_FORCE_INLINE std::string | ai_to_string (T value) |
| template<class char_t > | |
| AI_FORCE_INLINE char_t | ai_tolower (char_t in) |
| Performs a to lower operation onto on single character. | |
| AI_FORCE_INLINE std::string | ai_tolower (const std::string &in) |
| Performs a ToLower-operation and return the lower-case string. | |
| template<class char_t > | |
| AI_FORCE_INLINE char_t | ai_toupper (char_t in) |
| Performs a to upper operation onto on single character. | |
| AI_FORCE_INLINE std::string | ai_trim (std::string &s) |
| Performs a trim from both ends (in place). | |
| AI_FORCE_INLINE void | ai_trim_left (std::string &s) |
| Performs a trim from start (in place) | |
| AI_FORCE_INLINE void | ai_trim_right (std::string &s) |
| Performs a trim from end (in place). | |
| #define AI_SIZEFMT "%zu" |
| ai_snprintf snprintf |
The portable version of the function snprintf ( C99 standard ), which works on visual studio compilers 2013 and earlier.
| outBuf | The buffer to write in |
| size | The buffer size |
| format | The format string |
| ap | The additional arguments. |
| #define INCLUDED_AI_STRINGUTILS_H |
| AI_FORCE_INLINE std::string ai_decimal_to_hexa | ( | T | toConvert | ) |
translate RGBA to String
| r | aiColor.r |
| g | aiColor.g |
| b | aiColor.b |
| a | aiColor.a |
| with_head | # |
| AI_FORCE_INLINE std::string ai_str_toprintable | ( | const char * | in, |
| int | len, | ||
| char | placeholder = '?' |
||
| ) |
Make a string printable by replacing all non-printable characters with the specified placeholder character.
| in | The incoming string. |
| len | The length of the incoming string. |
| placeholder | Placeholder character, default is a question mark. |
| AI_FORCE_INLINE std::string ai_str_toprintable | ( | const std::string & | in, |
| char | placeholder = '?' |
||
| ) |
Make a string printable by replacing all non-printable characters with the specified placeholder character.
| in | The incoming string. |
| placeholder | Placeholder character, default is a question mark. |
| AI_FORCE_INLINE std::string ai_str_toupper | ( | const std::string & | in | ) |
Performs a ToLower-operation and return the upper-case string.
| in | The incoming string. |
| AI_FORCE_INLINE std::string ai_to_string | ( | T | value | ) |
| AI_FORCE_INLINE char_t ai_tolower | ( | char_t | in | ) |
Performs a to lower operation onto on single character.
| in | The character |
| AI_FORCE_INLINE std::string ai_tolower | ( | const std::string & | in | ) |
Performs a ToLower-operation and return the lower-case string.
| in | The incoming string. |
| AI_FORCE_INLINE char_t ai_toupper | ( | char_t | in | ) |
Performs a to upper operation onto on single character.
| in | The character |
| AI_FORCE_INLINE std::string ai_trim | ( | std::string & | s | ) |
Performs a trim from both ends (in place).
| s | string to trim. |
| AI_FORCE_INLINE void ai_trim_left | ( | std::string & | s | ) |
Performs a trim from start (in place)
| s | string to trim. |
| AI_FORCE_INLINE void ai_trim_right | ( | std::string & | s | ) |
Performs a trim from end (in place).
| s | string to trim. |