XMSTRINGTABLEPARSESTRINGARRAY(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

✨ XmStringTableParseStringArray ✨

okay bestie, welcome to the library call corner of your manual, this one is XmStringTableParseStringArray(3) and it's literally the glow-up function that takes a whole array of strings and turns them into a compound string table. no cap. πŸ’…


🌸 NAME 🌸

XmStringTableParseStringArray β€” a convenience function that converts an array of strings to a compound string table πŸ¦‹


✨ SYNOPSIS ✨

#include <Xm/Xm.h>
XmStringTable XmStringTableParseStringArray(
XtPointer *strings,
Cardinal count,
XmStringTag tag,
XmTextType type,
XmParseTable parse,
Cardinal parse_count,
XtPointer call_data);

πŸ’– DESCRIPTION πŸ’–

so here's the tea, bestie πŸ“ β€” XmStringTableParseStringArray takes an array of strings, allocates an XmStringTable with an equal number of slots, calls XmStringParseText on each string in strings, and inserts the resulting XmString in the corresponding slot in the XmStringTable. it's giving factory line but make it fabulous ✨

  • strings β€” specifies an array of strings of characters as determined by type. πŸ’œ
  • count β€” specifies the number of strings in strings. count them, queen, don't guess πŸ”’
  • tag β€” specifies the tag to be used in creating the result. the type of tag created (charset or locale) depends on the type of the text and the value given. if the value specified is NULL, and type indicates that a charset tag should be created, then the tag will have the value of XmFONTLIST_DEFAULT_TAG. if type indicates a locale tag, then the tag will have the value of XmFONTLIST_DEFAULT_TAG. πŸŽ€
  • type β€” specifies the type of text to be passed in and the type of tag. if the type is either XmMULTIBYTE_TEXT or XmWIDECHAR_TEXT, a locale tag should be created. if the type is XmCHARSET_TEXT, a charset tag will be created. 🌈
  • parse β€” specifies the parse table to be used. 🧚
  • parse_count β€” specifies the number of entries in the parse table. πŸ’«
  • call_data β€” specifies data to be passed to the parse procedures. πŸ™ˆ

πŸ‘‘ RETURN πŸ‘‘

returns a new XmStringTable. ✨ the function allocates space to hold the XmStringTable.

⚠️ okay this part is important, bestie, do not skip it: when the application no longer needs the returned XmStringTable, the application should call XmStringFree count times (that is, one time for each returned compound string) and then call XtFree to deallocate the XmStringTable itself. that's count calls plus one. the way that memory leaks are NOT the vibe πŸ˜­πŸ’€


and that's the whole page, bestie 🫢 this was served to you from the library call manual β€” XmStringTa...StringArray(library call), exactly as it's titled up top and exactly as it's signed off at the bottom. no date stamp made it into the footer, so consider this your timeless little classic πŸ“šβ­ stay hydrated, free your strings, and slay πŸ’…πŸ’–