Provided by: libzycore-doc_1.5.1-1_all bug

NAME

       ZyanStringView_

SYNOPSIS

       #include <String.h>

   Public Attributes
       ZyanString string

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

   ZyanString ZyanStringView_::string
       The string data.

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

Author

       Generated automatically by Doxygen for Zycore from the source code.

Zycore                                           Version 1.5.1.0                              ZyanStringView_(3)