diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-15 19:20:44 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-15 19:20:44 +0200 |
commit | d8760ab5cf8378fa50e48453149e96a1392253e2 (patch) | |
tree | 3ee857325aefe46070d21c0339feee068987222a /include/_uNview.h | |
parent | b6792f703c715ccfc0854c4e8ee3ca703565f4eb (diff) |
Shorten the string view type names
Diffstat (limited to 'include/_uNview.h')
-rw-r--r-- | include/_uNview.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/_uNview.h b/include/_uNview.h index 9d0d5e2..1001807 100644 --- a/include/_uNview.h +++ b/include/_uNview.h @@ -1,23 +1,23 @@ -#ifndef MLIB__U8VIEW_H -#define MLIB__U8VIEW_H +#ifndef MLIB__UNVIEW_H +#define MLIB__UNVIEW_H #include <stddef.h> #include "_charN_t.h" -struct u8view { +typedef struct { const char8_t *p; size_t len; -}; +} u8view_t; -struct u16view { +typedef struct { const char16_t *p; size_t len; -}; +} u16view_t; -struct u32view { +typedef struct { const char32_t *p; size_t len; -}; +} u32view_t; -#endif /* !MLIB__U8VIEW_H */ +#endif /* !MLIB__UNVIEW_H */ |