Skip to content

Commit defa3bf

Browse files
author
Julian LALU
committed
Start adding cstring_view
1 parent f16216c commit defa3bf

File tree

12 files changed

+499
-543
lines changed

12 files changed

+499
-543
lines changed

.clang-format

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ FixNamespaceComments: true
4040

4141
UseTab: Never
4242
TabWidth: 4
43-
BreakBeforeBraces: Allman
43+
BreakBeforeBraces: Custom
44+
BraceWrapping:
45+
AfterControlStatement: false
46+
AfterEnum: true
47+
AfterFunction: true
48+
AfterNamespace: true
49+
AfterStruct: true
50+
AfterClass: true
51+
AfterUnion: true
52+
BeforeCatch: false
53+
BeforeElse: true
54+
IndentBraces: false
55+
4456
IndentCaseLabels: true
4557
ColumnLimit: 0
4658
AccessModifierOffset: -4
@@ -60,7 +72,7 @@ PointerAlignment: Right
6072
ReferenceAlignment: Right
6173
RequiresClausePosition: OwnLine
6274
# RequiresExpressionIndentation: OuterScope # clang-format 16
63-
SeparateDefinitionBlocks: Always
75+
SeparateDefinitionBlocks: Leave
6476
SortIncludes: Never
6577
SpaceAfterTemplateKeyword: false
6678
SpaceAroundPointerQualifiers: Default

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It provides low-level C++ features that are close to the C++ STL implementation:
3535
- **Containers:** array (std::vector), pair, tuple, optional, shared_pointer, unique_pointer, etc.
3636
- **Debugging features:** conditional break, debugger attached checker, call stacks, etc.
3737
- **Memory:** dynamic allocations, slicing, constexpr allocations/constructions/destructions, etc.
38-
- **Strings:** UTF-8 strings, ANSI strings, platform-specific strings, etc.
38+
- **Strings:** UTF-8 strings, ASCII strings, platform-specific strings, etc.
3939

4040
**Core** follows the STL interface but permits making changes and additions to the STL specification to improve productivity, limit bugs, and enhance performance. It focuses on code quality, robustness, and performance.
4141

interface/core/cstring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef HD_INC_CORE_CSTRING_H
22
#define HD_INC_CORE_CSTRING_H
33

4-
#include "string/cstring/cstring.h"
4+
#include "string/cstring.h"
55

66
#endif // HD_INC_CORE_CSTRING_H

0 commit comments

Comments
 (0)