GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

πŸ’– GOLF(2gg) β€” the trim-string era πŸ’–

okay bestie, pull up a chair, we're reading a manual page together and honestly? it's giving ✨development✨. This is GOLF(2gg), section 2gg, and today's main character is trim-string. Let's get into it 🫢


🌸 NAME 🌸

trim-string β€” it lives in the (strings) family πŸŽ€


🌈 PURPOSE 🌈

Trim a string. That's the whole job. That's the assignment. Slay πŸ’…


✨ SYNTAX ✨

trim-string <string>

πŸ’œ DESCRIPTION πŸ’œ

trim-string trims <string>, and not just on one side β€” both on left and right. Equal opportunity trimming. No cap. It's an icon, it's a legend, and it's the moment πŸ”₯


πŸ¦‹ EXAMPLES πŸ¦‹

So the variable "str" will be "some string" after trim-string, like this:

set-string str = "  some string  ";
trim-string str

Look at those spaces on both ends just… gone. Not me being obsessed with a trim function πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

Strings

Also the whole friend group, no one left out πŸ’–:

  • concatenate-strings
  • copy-string
  • count-substring
  • delete-string
  • lower-string
  • new-string
  • read-split
  • replace-string
  • set-string
  • split-string
  • string-length
  • trim-string
  • upper-string
  • write-string

See all documentation πŸ“š


and that's the page, bestie β€” you ate 🌈⭐

This was $DATE, version $VERSION, of the GOLF(2gg) manual. Stan this page, hydrate, and go trim something πŸ’…πŸ’–
πŸ“¦ where this page comes from