mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Merge branch 'master' of github.com:bkaradzic/bx
This commit is contained in:
@@ -21,6 +21,7 @@ namespace bx
|
||||
};
|
||||
|
||||
/// Non-zero-terminated string view.
|
||||
///
|
||||
class StringView
|
||||
{
|
||||
public:
|
||||
@@ -77,9 +78,16 @@ namespace bx
|
||||
///
|
||||
void clear();
|
||||
|
||||
/// Returns pointer to non-terminated string.
|
||||
///
|
||||
/// @attention Use of this pointer in standard C/C++ functions is not safe. You must use it
|
||||
/// in conjunction with `getTerm()` or getLength()`.
|
||||
///
|
||||
const char* getPtr() const;
|
||||
|
||||
/// Returns pointer past last character in string view.
|
||||
///
|
||||
/// @attention Dereferencing this pointer is not safe.
|
||||
///
|
||||
const char* getTerm() const;
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
# if BX_CONFIG_CRT_DIRECTORY_READER
|
||||
# include <dirent.h>
|
||||
# endif // BX_CONFIG_CRT_DIRECTORY_READER
|
||||
# include <stdio.h> // remove
|
||||
# include <stdio.h> // remove
|
||||
# include <sys/stat.h> // stat, mkdir
|
||||
# if BX_CRT_MSVC
|
||||
# include <direct.h> // _getcwd
|
||||
# include <direct.h> // _getcwd
|
||||
# else
|
||||
# include <sys/stat.h> // stat, mkdir
|
||||
# include <unistd.h> // getcwd
|
||||
# include <unistd.h> // getcwd
|
||||
# endif // BX_CRT_MSVC
|
||||
#endif // !BX_CRT_NONE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user