Daniele Bartolini 10 سال پیش
والد
کامیت
aea342df22

+ 2 - 2
src/core/strings/dynamic_string.h

@@ -15,9 +15,9 @@
 
 namespace crown
 {
-/// Dynamic array of charachers.
+/// Dynamic array of characters.
 ///
-/// @ingroup Containers
+/// @ingroup String
 struct DynamicString
 {
 	ALLOCATOR_AWARE;

+ 3 - 0
src/core/strings/fixed_string.h

@@ -10,6 +10,9 @@
 
 namespace crown
 {
+/// Fixed string.
+///
+/// @ingroup String
 class FixedString
 {
 	u32 _length;

+ 0 - 0
src/core/string_id.cpp → src/core/strings/string_id.cpp


+ 6 - 0
src/core/string_id.h → src/core/strings/string_id.h

@@ -9,6 +9,9 @@
 
 namespace crown
 {
+/// Hashed string.
+///
+/// @ingroup String
 struct StringId32
 {
 	u32 _id;
@@ -27,6 +30,9 @@ struct StringId32
 	static const u32 STRING_LENGTH = 32;
 };
 
+/// Hashed string.
+///
+/// @ingroup String
 struct StringId64
 {
 	u64 _id;

+ 2 - 6
src/core/strings/string_stream.h

@@ -6,18 +6,14 @@
 #pragma once
 
 #include "array.h"
+#include "string_types.h"
 #include "string_utils.h"
 
 namespace crown
 {
-/// Stream of characters.
-///
-/// @ingroup Containers
-typedef Array<char> StringStream;
-
 /// Functions to manipulate StringStream.
 ///
-/// @ingroup Containers
+/// @ingroup String
 namespace string_stream
 {
 	/// Appends @a val to the stream @a s using appropriate formatting.

+ 21 - 0
src/core/strings/string_types.h

@@ -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.
+///
+/// @ingroup String
+typedef Array<char> StringStream;
+
+} // namespace crown

+ 0 - 0
src/core/utf8.cpp → src/core/strings/utf8.cpp


+ 3 - 0
src/core/utf8.h → src/core/strings/utf8.h

@@ -12,6 +12,9 @@
 
 namespace crown
 {
+/// Functions to manipulate UTF8-encoded data.
+///
+/// @ingroup String
 namespace utf8
 {
 	/// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.