@@ -5,27 +5,65 @@ namespace Qx
55//===============================================================================================================
66
77/*!
8- * @struct StringLiteral qx/utility/qx-stringliteral.h
8+ * @struct TStringLiteral qx/utility/qx-stringliteral.h
99 * @ingroup qx-utility
1010 *
11- * @brief The StringLiteral template struct acts as a literal class type wrapper around a C-style string
12- * that effectively allows the string to be used as a non-type template parameter.
11+ * @brief The TStringLiteral template class acts as a literal class type wrapper around a C-style string
12+ * that effectively allows the string to be used as a non-type template parameter. Generally you should
13+ * use the predefined aliases instead of the template directly.
1314 *
1415 * @snippet qx-stringliteral.cpp 0
1516 */
1617
17- //-Instance Fields---------------------------------------------------------------------------------------------
18+ //-Constructor-------------------------------------------------------------------------------------------------
19+ //Public:
1820/*!
19- * @var StringLiteral::value
21+ * @fn TStringLiteral::TStringLiteral(const C (&str)[N])
2022 *
21- * The wrapped C-Style string.
23+ * Wraps the C-Style string @a str of length @a N .
2224 */
2325
24- //-Constructor -------------------------------------------------------------------------------------------------
26+ //-Instance Functions--- -------------------------------------------------------------------------------------------------
2527//Public:
2628/*!
27- * @fn StringLiteral<N>::StringLiteral( const char (&str)[N])
29+ * @fn const C* TStringLiteral::data() const
2830 *
29- * Wraps the C-Style string @a str of length @a N.
31+ * Returns a pointer to the c-style string.
32+ */
33+
34+ /*!
35+ * @fn size_t TStringLiteral::size() const
36+ *
37+ * Returns the size of the string.
38+ */
39+
40+ //-Operators-------------------------------------------------------------------------------------------------------
41+ //Public:
42+ /*!
43+ * @fn bool TStringLiteral::operator<=>(const TStringLiteral& other) const
44+ *
45+ * Returns @c true if the TStringLiteral is equal to @a other; otherwise, returns @c false.
46+ */
47+
48+ /*!
49+ * @fn auto TStringLiteral::operator+(const TStringLiteral<C, M>& other) const
50+ *
51+ * Returns a string which is the result of concatenating @c this and @a other.
52+ */
53+
54+ //===============================================================================================================
55+ // <file>
56+ //===============================================================================================================
57+
58+ /*!
59+ * @typedef StringLiteral
60+ *
61+ * A TStringLiteral with character type @c char.
62+ */
63+
64+ /*!
65+ * @typedef StringLiteral16
66+ *
67+ * A TStringLiteral with character type @c char16_t.
3068 */
3169}
0 commit comments