mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
includes: Fix various spelling errors (#270)
docs: fix some spelling errors Related issue: https://github.com/WerWolv/ImHex/issues/1139
This commit is contained in:
@@ -32,7 +32,7 @@ namespace auto type {
|
||||
} [[format("type::impl::format_nibbles")]];
|
||||
|
||||
/**
|
||||
Type representing a single Byte. Decodes the byte as it's hexadeicmal value, individual bits and nibbles
|
||||
Type representing a single Byte. Decodes the byte as it's hexadecimal value, individual bits and nibbles
|
||||
*/
|
||||
union Byte {
|
||||
u8 value;
|
||||
|
||||
@@ -8,10 +8,10 @@ namespace auto type {
|
||||
|
||||
/**
|
||||
Type representing a single path segment. Use the `Path` type instead of using this on its own
|
||||
@tparam Delimeter The delimeter sequence used to separate two path segments
|
||||
@tparam Delimiter The delimiter sequence used to separate two path segments
|
||||
*/
|
||||
struct PathSegment<auto Delimeter> {
|
||||
char string[while(std::mem::read_string($, std::string::length(Delimeter)) != Delimeter && std::mem::read_unsigned($, 1) != 0x00)];
|
||||
struct PathSegment<auto Delimiter> {
|
||||
char string[while(std::mem::read_string($, std::string::length(Delimiter)) != Delimiter && std::mem::read_unsigned($, 1) != 0x00)];
|
||||
char separator [[hidden]];
|
||||
|
||||
if (separator == 0x00) {
|
||||
@@ -21,20 +21,20 @@ namespace auto type {
|
||||
} [[sealed, format("type::impl::format_path_segment")]];
|
||||
|
||||
/**
|
||||
A generic type representing a path with an arbitrary delimeter
|
||||
@tparam Delimeter The delimeter sequence used to separate two path segments
|
||||
A generic type representing a path with an arbitrary delimiter
|
||||
@tparam Delimiter The delimiter sequence used to separate two path segments
|
||||
*/
|
||||
struct Path<auto Delimeter> {
|
||||
PathSegment<Delimeter> segments[while(true)];
|
||||
struct Path<auto Delimiter> {
|
||||
PathSegment<Delimiter> segments[while(true)];
|
||||
} [[format("type::impl::format_path")]];
|
||||
|
||||
/**
|
||||
A type representing a Unix path using a '/' forwardslash as delimeter
|
||||
A type representing a Unix path using a '/' forward slash as delimiter
|
||||
*/
|
||||
using UnixPath = Path<"/">;
|
||||
|
||||
/**
|
||||
A type representing a DOS path using a '\\' backslash as delimeter
|
||||
A type representing a DOS path using a '\\' backslash as delimiter
|
||||
*/
|
||||
using DOSPath = Path<"\\">;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user