@@ -15,9 +15,9 @@
namespace crown
{
-/// Dynamic array of charachers.
+/// Dynamic array of characters.
///
-/// @ingroup Containers
+/// @ingroup String
struct DynamicString
ALLOCATOR_AWARE;
@@ -10,6 +10,9 @@
+/// Fixed string.
+///
class FixedString
u32 _length;
@@ -9,6 +9,9 @@
+/// Hashed string.
struct StringId32
u32 _id;
@@ -27,6 +30,9 @@ struct StringId32
static const u32 STRING_LENGTH = 32;
};
struct StringId64
u64 _id;
@@ -6,18 +6,14 @@
#pragma once
#include "array.h"
+#include "string_types.h"
#include "string_utils.h"
-/// Stream of characters.
-///
-typedef Array<char> StringStream;
-
/// Functions to manipulate StringStream.
namespace string_stream
/// Appends @a val to the stream @a s using appropriate formatting.
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
+ * License: https://github.com/taylor001/crown/blob/master/LICENSE
+ */
+
+#pragma once
+/// @defgroup String String
+namespace crown
+{
+class DynamicString;
+class FixedString;
+struct StringId32;
+struct StringId64;
+/// Stream of characters.
+typedef Array<char> StringStream;
+} // namespace crown
@@ -12,6 +12,9 @@
+/// Functions to manipulate UTF8-encoded data.
namespace utf8
/// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.