Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse Titan
titan.core
Commits
3ee686ff
Commit
3ee686ff
authored
Jun 11, 2020
by
Jeno Attila Balasko
Committed by
Gerrit Code Review
Jun 11, 2020
Browse files
Merge "This should not cause problems, and still be a code better documenting itself."
parents
bd1e73f3
629c72c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler2/ustring.hh
View file @
3ee686ff
...
...
@@ -21,6 +21,7 @@
#define _Common_ustring_HH
#include <string.h>
#include <limits.h>
class
string
;
...
...
@@ -53,9 +54,9 @@ private:
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
=
(
-
1
-
sizeof
(
ustring_struct
))
/
sizeof
(
universal_char
)
+
1
;
(
UINT_MAX
-
sizeof
(
ustring_struct
))
/
sizeof
(
universal_char
)
+
1
;
/** Constructs an empty string. */
ustring
()
:
val_ptr
(
0
)
{
init_struct
(
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment