logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ZyanStringView_

Author

       Generated automatically by Doxygen for Zycore from the source code.

Zycore                                           Version 1.5.2.0                              ZyanStringView_(3)

Detailed Description

       Defines the ZyanStringView struct.

       The ZyanStringView type provides a view inside a string (ZyanString instances, null- terminated C-style
       strings, or even not-null-terminated custom strings). A view is immutable by design and can't be directly
       converted to a C-style string.

       Views might become invalid (e.g. pointing to invalid memory), if the underlying string gets destroyed or
       resized.

       The ZYAN_STRING_TO_VIEW macro can be used to cast a ZyanString to a ZyanStringView pointer without any
       runtime overhead. Casting a view to a normal string is not supported and will lead to unexpected behavior
       (use ZyanStringDuplicate to create a deep-copy instead).

       All fields in this struct should be considered as 'private'. Any changes may lead to unexpected behavior.

Member Data Documentation

ZyanStringZyanStringView_::string
       The string data.

       The view internally re-uses the normal string struct to allow casts without any runtime overhead.

Name

       ZyanStringView_

Synopsis

       #include <String.h>

   PublicAttributesZyanStringstring

See Also