include/antlr3string.h(3)

πŸ“¦ version 3.4, in fedora 43

✨ include/antlr3string.h β€” the string interface, bestie edition ✨

okay so this is a page from the ANTLR3C manual, and it's about <antlr3string.h> β€” the simple string interface. no cap, it's lowkey iconic. πŸŽ€


πŸ’– NAME πŸ’–

include/antlr3string.h β€” Simple string interface allows indiscriminate allocation of strings such that they can be allocated all over the place and released in one chunk via a string factory β€” saves lots of hassle in remembering what strings were allocated where.

fr fr, that's the whole vibe: allocate wherever, free everything in one go. main character energy for your memory management. πŸ’…


🌸 SYNOPSIS 🌸

#include <antlr3defs.h>
#include <antlr3collections.h>

πŸ¦‹ Data Structures πŸ¦‹

  • struct ANTLR3_STRING_FACTORY_struct β€” Definition of the string factory interface, which creates and tracks strings for you of various shapes and sizes.
  • struct ANTLR3_STRING_struct β€” Base string class tracks the allocations and provides simple string tracking functions.

πŸŽ€ Typedefs πŸŽ€

  • typedef struct ANTLR3_STRING_struct ANTLR3_STRING β€” Base string class tracks the allocations and provides simple string tracking functions.
  • typedef struct ANTLR3_STRING_FACTORY_struct ANTLR3_STRING_FACTORY β€” Definition of the string factory interface, which creates and tracks strings for you of various shapes and sizes.

🌈 Detailed Description 🌈

Simple string interface allows indiscriminate allocation of strings such that they can be allocated all over the place and released in one chunk via a string factory β€” saves lots of hassle in remembering what strings were allocated where.

like. the way that you don't have to keep a little mental list of every single string you ever made?? obsessed. you just yeet them all into the factory and it holds them for you. ✨🫢


πŸ’œ Typedef Documentation πŸ’œ

πŸ“ typedef struct ANTLR3_STRING_struct ANTLR3_STRING πŸ“

Base string class tracks the allocations and provides simple string tracking functions. Mostly you can work directly on the string for things that don't reallocate it, like strchr() etc. Perhaps someone will want to provide implementations for UTF8 and so on.

ngl that "perhaps someone will want to provide implementations for UTF8 and so on" is giving open invitation. πŸ‘€ if that someone is you, slay.

🧚 typedef struct ANTLR3_STRING_FACTORY_struct ANTLR3_STRING_FACTORY 🧚

Definition of the string factory interface, which creates and tracks strings for you of various shapes and sizes.

she makes them, she tracks them, she does not lose them. a queen. πŸ‘‘


⭐ Author ⭐

Generated automatically by Doxygen for ANTLR3C from the source code.


and that's the whole page bestie!! Version 3.3.1, dated Tue Jul 29 2025 00:00:00 β€” mwah, go forth and allocate indiscriminately πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from