diff options
author | David Robillard <d@drobilla.net> | 2014-08-08 06:12:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-08-08 06:12:09 +0000 |
commit | 6773fba30029b5050a099ab0dd91ec15352a9f2b (patch) | |
tree | 95dadcfc5db25b56831160e8fb29b57cc0579c63 /raul/Symbol.hpp | |
parent | be40ec20bee088486e823d9824a72a8dfcb2c58e (diff) | |
download | raul-6773fba30029b5050a099ab0dd91ec15352a9f2b.tar.gz raul-6773fba30029b5050a099ab0dd91ec15352a9f2b.tar.bz2 raul-6773fba30029b5050a099ab0dd91ec15352a9f2b.zip |
Use Markdown in doc comments for better source readability.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@5428 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Symbol.hpp')
-rw-r--r-- | raul/Symbol.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/raul/Symbol.hpp b/raul/Symbol.hpp index 7af99ba..6f0dd91 100644 --- a/raul/Symbol.hpp +++ b/raul/Symbol.hpp @@ -44,7 +44,7 @@ public: /** Construct a Symbol from a C++ string. * - * This will throw an exception if @p symbol is invalid. To avoid this, + * This will throw an exception if `symbol` is invalid. To avoid this, * use is_valid() first to check. */ explicit Symbol(const std::basic_string<char>& symbol) @@ -57,7 +57,7 @@ public: /** Construct a Symbol from a C string. * - * This will throw an exception if @p symbol is invalid. To avoid this, + * This will throw an exception if `symbol` is invalid. To avoid this, * use is_valid() first to check. */ explicit Symbol(const char* symbol) @@ -77,17 +77,17 @@ public: : std::basic_string<char>(symbol) {} - /** Return true iff @p c is a valid Symbol start character. */ + /** Return true iff `c` is a valid Symbol start character. */ static inline bool is_valid_start_char(char c) { return (c == '_') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); } - /** Return true iff @p c is a valid Symbol character. */ + /** Return true iff `c` is a valid Symbol character. */ static inline bool is_valid_char(char c) { return is_valid_start_char(c) || (c >= '0' && c <= '9'); } - /** Return true iff @p str is a valid Symbol. */ + /** Return true iff `str` is a valid Symbol. */ static inline bool is_valid(const std::basic_string<char>& str) { if (str.empty() || (str[0] >= '0' && str[0] <= '9')) { return false; // Must start with a letter or underscore |