ustr(1)
π ustr-import π
okay bestie, welcome to ustr(1) β the Ustr String Library, tools corner of the manual. this one's about ustr-import, and it's genuinely so iconic, let me explain π
β¨ NAME β¨
ustr-import β the ustr string library import tool π¦
πΈ SYNOPSIS πΈ
ustr-import [--32|--64] [-d][d] [-c] [-b x] [-e 1|0] [-s 1|0] section
like. that's the whole vibe. one line. she's efficient π
π DESCRIPTION π
so here's the tea, bestie π β this tool lets you use the Ustr string library without incurring dependencies on the library itself. which means:
- API/ABI compatibility is 100% (nothing changes unless you do it, periodt)
- installing your application doesn't require the library to be pre-installed β¨
it's giving self-sufficient. it's giving main character energy. no cap π«Ά
π OPTIONS π
--32β if you installed with multilib, this runs the 32 bit variant (and installs the variable multilib build code asustr-conf.h).--64β if you installed with multilib, this runs the 64 bit variant (and installs the variable multilib build code asustr-conf.h).-dβ turn debugging on.USTR_ASSERT()now runs code and everything π-dβ turn extra debugging on, including End of String (EOS) markers that take up space. note that you can do-ddto add both at once π₯-cβ use C files. this requires that you alter the build system to compile the C files and link them into your application. the default is to just provide headers that you can just include.-bβ specify the default reference count byte size:0,1,2or4(or8on 64 bit platforms). note that 2 bytes is the minimum if you have explicit size storage β-eβ specify the default exact sized allocations flag. without this flag, allocations are rounded up to the nearest half power of two π-sβ specify the default explicit size storage flag. without this flag, allocations have an implicit size based on their length; with it, a size value is stored with the string (thus taking significantly larger space for small strings, but this doesn't require reallocating the string when growing and shrinking the string). note that turning this on also increases the minimum sizes for length and reference count storage π
π SECTIONS π
okay so this is the part where you pick what you actually want, bestie. one section per run, and here's the whole menu π
allβ all of the following sections are included. the "give me everything" option, obsessed πbβ working with binary numbers in NBO format.cmpβ comparing,strcmp()for Ustr's, although the Ustr versions are safer and much faster.cntlβ control options dynamically.fmtβ formatted output,sprintf()for Ustr's.gdbβ copy just the.gdbinitfile to the local dir.ioβ Input Output.insβ inserting data.mainβ the core functions, includingstrcat(),strdup()and delete for Ustr's. always safer and often much faster. the moment. the icon. the legend πparseβ parsing integers, i.e. nice versions ofstrtol().poolβ a bundled memory pool API, to use with theustrpfunctions.replaceβ replacing all occurrences of data.scβ shortcut functions for Ustr's.setβ setting data,strcpy()for Ustr's.splitβ split the data,strtok()/strsep()for Ustr's.spnβ spanning,strspn()/strcspn()for Ustr's.srchβ searching,strchr()/strrchr()/strstr()for Ustr's, although the Ustr versions are safer and much faster.subβ substituting data.utf8β working with UTF8. πβ¨
π§ FILES π§
/ustr/include/ustr-conf.h/ustr/include/ustr-conf-debug.hβ in multilib, this is the header to choose the correctconf.hheader based on the byte size./ustr/include/ustr*.hβ the default "extern" header files./usr/share/ustr-*/ustr-*-internal.hβ internal functions, used to implement the public interfaces./usr/share/ustr-*/ustr-*-code.hβ the code behind the public interfaces./usr/share/ustr-*/ustr-*-code.cβ the C files, which use the code header files to create objects./usr/share/ustr-*/.gdbinitβ the GDB init file containing macros to help inspect Ustr's in the debugger. π
π¦ SEE ALSO π¦
iykyk π
and that's a wrap on the page, bestie π this was ustr-import version 1.0.4, dated 03-Aug-2007, from the Ustr String Library tools β she's vintage and she ATE π
β¨πΈ
π¦ where this page comes from
- fedora 43: ustr-devel 1.0.4-42.fc43 Β· LicenseRef-Callaway-MIT OR LicenseRef-Callaway-LGPLv2+ OR LicenseRef-Callaway-BSD
- fedora 43: ustr-devel 1.0.4-42.fc43 Β· LicenseRef-Callaway-MIT OR LicenseRef-Callaway-LGPLv2+ OR LicenseRef-Callaway-BSD
- fedora 44: ustr-devel 1.0.4-43.fc44 Β· LicenseRef-Callaway-MIT OR LicenseRef-Callaway-LGPLv2+ OR LicenseRef-Callaway-BSD
- fedora 44: ustr-devel 1.0.4-43.fc44 Β· LicenseRef-Callaway-MIT OR LicenseRef-Callaway-LGPLv2+ OR LicenseRef-Callaway-BSD
- nixos 26.05: ustr 1.0.4
- nixpkgs unstable: ustr 1.0.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms