Skip to content

Commit 1bb47b2

Browse files
committed
Namespace refactoring
1 parent 326fe4f commit 1bb47b2

File tree

3 files changed

+53
-51
lines changed

3 files changed

+53
-51
lines changed

src/ArduinoYaml.cpp

+51-50
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*\
2+
*
23
* @file
34
* @version 1.0
45
* @author tobozo <[email protected]>
@@ -63,10 +64,10 @@ namespace YAML
6364

6465

6566
/*\
66-
* @brief Confirm a string only contains one given char
67-
*
68-
* setJSONIndent helper, checks if haystack
69-
* is filled with needle.
67+
* @brief Confirm a string only contains one given char
68+
*
69+
* setJSONIndent helper, checks if haystack
70+
* is filled with needle.
7071
\*/
7172
bool is_filled_with( char needle, const char* haystack )
7273
{
@@ -421,10 +422,10 @@ namespace YAML
421422

422423

423424
/*\
424-
* @brief YAML document copier
425-
*
426-
* Creates a copy of a given document.
427-
*
425+
* @brief YAML document copier
426+
*
427+
* Creates a copy of a given document.
428+
*
428429
\*/
429430
int yaml_copy_document(yaml_document_t *dest, yaml_document_t *src)
430431
{
@@ -550,8 +551,8 @@ namespace YAML
550551

551552

552553
/*\
553-
* @brief Get the node type
554-
*
554+
* @brief Get the node type
555+
*
555556
\*/
556557
YAMLNode::Type YAMLNode::type() const
557558
{
@@ -572,8 +573,8 @@ namespace YAML
572573

573574

574575
/*\
575-
* @brief Get scalar value
576-
*
576+
* @brief Get scalar value
577+
*
577578
\*/
578579
const char* YAMLNode::scalar() const
579580
{
@@ -585,8 +586,8 @@ namespace YAML
585586

586587

587588
/*\
588-
* @brief Node Accessor (sequence)
589-
*
589+
* @brief Node Accessor (sequence)
590+
*
590591
\*/
591592
YAMLNode YAMLNode::operator [] ( int i ) const
592593
{
@@ -605,8 +606,8 @@ namespace YAML
605606

606607

607608
/*\
608-
* @brief Node Accessor (map)
609-
*
609+
* @brief Node Accessor (map)
610+
*
610611
\*/
611612
YAMLNode YAMLNode::operator [] ( const char *str ) const
612613
{
@@ -632,8 +633,8 @@ namespace YAML
632633

633634

634635
/*\
635-
* @brief Node size
636-
*
636+
* @brief Node size
637+
*
637638
\*/
638639
size_t YAMLNode::size() const
639640
{
@@ -657,10 +658,10 @@ namespace YAML
657658

658659

659660
/*\
660-
* @brief YAML String loader
661-
*
662-
* Note: this is a static method
663-
*
661+
* @brief YAML String loader
662+
*
663+
* Note: this is a static method
664+
*
664665
\*/
665666
YAMLNode YAMLNode::loadString( const char *str )
666667
{
@@ -670,10 +671,10 @@ namespace YAML
670671

671672

672673
/*\
673-
* @brief YAML String loader
674-
*
675-
* Note: this is a static method
676-
*
674+
* @brief YAML String loader
675+
*
676+
* Note: this is a static method
677+
*
677678
\*/
678679
YAMLNode YAMLNode::loadString( const char *str, size_t len )
679680
{
@@ -699,10 +700,10 @@ namespace YAML
699700

700701

701702
/*\
702-
* @brief YAML Stream loader (stream handler data)
703-
*
704-
* Note: this is a static method
705-
*
703+
* @brief YAML Stream loader (stream handler data)
704+
*
705+
* Note: this is a static method
706+
*
706707
\*/
707708
YAMLNode YAMLNode::loadStream( yaml_stream_handler_data_t &shd )
708709
{
@@ -729,10 +730,10 @@ namespace YAML
729730

730731

731732
/*\
732-
* @brief YAML Stream loader (basic stream)
733-
*
734-
* Note: this is a static method
735-
*
733+
* @brief YAML Stream loader (basic stream)
734+
*
735+
* Note: this is a static method
736+
*
736737
\*/
737738
YAMLNode YAMLNode::loadStream( Stream &stream )
738739
{
@@ -743,10 +744,10 @@ namespace YAML
743744

744745

745746
/*\
746-
* @brief l10n style gettext
747-
*
748-
* L10N: Return localized string when given a path e.g. 'blah:some:property:count:1'
749-
*
747+
* @brief l10n style gettext
748+
*
749+
* L10N: Return localized string when given a path e.g. 'blah:some:property:count:1'
750+
*
750751
\*/
751752
const char* YAMLNode::gettext( const char* path, char delimiter)
752753
{
@@ -799,8 +800,8 @@ namespace YAML
799800

800801

801802
/*\
802-
* @brief Parser error handler
803-
*
803+
* @brief Parser error handler
804+
*
804805
\*/
805806
void YAMLNode::handle_parser_error(yaml_parser_t *p)
806807
{
@@ -830,8 +831,8 @@ namespace YAML
830831

831832

832833
/*\
833-
* @brief Emitter error handler
834-
*
834+
* @brief Emitter error handler
835+
*
835836
\*/
836837
void YAMLNode::handle_emitter_error(yaml_emitter_t *e)
837838
{
@@ -845,10 +846,10 @@ namespace YAML
845846

846847

847848
/*\
848-
* @brief yaml_document_t traverser (not really a deconstructor)
849-
*
850-
* Output format: JSON
851-
*
849+
* @brief yaml_document_t traverser (not really a deconstructor)
850+
*
851+
* Output format: JSON
852+
*
852853
\*/
853854
size_t YAMLNode::toJSON( yaml_traverser_t *it )
854855
{
@@ -925,10 +926,10 @@ namespace YAML
925926

926927

927928
/*\
928-
* @brief yaml_document_t traverser (not really a deconstructor)
929-
*
930-
* Output format: YAML
931-
*
929+
* @brief yaml_document_t traverser (not really a deconstructor)
930+
*
931+
* Output format: YAML
932+
*
932933
\*/
933934
size_t YAMLNode::toYAML( yaml_traverser_t *it )
934935
{

src/ArduinoYaml.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*\
2+
*
23
* @file
34
* @version 1.0
45
* @author tobozo <[email protected]>

src/logger.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*\
2+
*
23
* @file
34
* @version 1.0
45
* @author tobozo <[email protected]>
@@ -233,5 +234,4 @@ namespace YAML
233234

234235
};
235236

236-
237237
};

0 commit comments

Comments
 (0)