Skip to content
Snippets Groups Projects
Commit 629c72c5 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

This should not cause problems, and still be a code better documenting itself.


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent b1f90f3b
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define _Common_ustring_HH #define _Common_ustring_HH
#include <string.h> #include <string.h>
#include <limits.h>
class string; class string;
...@@ -53,9 +54,9 @@ private: ...@@ -53,9 +54,9 @@ private:
public: public:
/** The largest possible value of type size_t. That is, size_t(-1). */ /** The largest possible string length that can theoretically fit into the memory. */
static const size_t max_string_len = static const size_t max_string_len =
(-1 - sizeof(ustring_struct)) / sizeof(universal_char) + 1; (UINT_MAX - sizeof(ustring_struct)) / sizeof(universal_char) + 1;
/** Constructs an empty string. */ /** Constructs an empty string. */
ustring() : val_ptr(0) { init_struct(0); } ustring() : val_ptr(0) { init_struct(0); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment