BeardLib
  • Home
  • Things to Know
    • Adding Files
    • ScriptData
  • Modules
    • Achievements
    • Add Files
    • Adding your own modules
    • AssetUpdates (Mod Updates)
    • Classes
    • Contact (contractors)
    • Crime Spree Mission
    • DLC
    • Dependencies
    • Elements
    • Global Value (Tagging weapons/etc)
    • Heist Music
      • Stealth Music
    • Hooks
    • Interactions
    • Keybind
    • Level
    • Localization
    • Mask Material
    • Mask Pattern
    • Mask
    • Melee
    • Menu Music
    • Menu
    • ModuleBase
    • Narrative
    • Options
    • Package
    • Script Mods (Replace script data)
    • Sounds
    • Tweak Modify
    • Weapon Mod
    • Weapon Skin
    • Weapon
    • XML
  • API
    • BeardLib Class
    • Constants
    • File Manager
    • Frameworks
    • Hooks
    • ModCore
    • Package Manager
    • Special Hook IDs
  • Utilities
    • FileIO
    • Input
    • Main
    • Math
    • Menu Helper Plus
    • Path
    • String
    • Sync
    • Table
    • Tweak Data Helper
    • XML
    • YAML
  • MenuUI
    • ComboBox
    • ImageButton
    • Item
    • Items
    • Keybind
    • Menus
    • Slider
    • TextBox
    • Toggle
Powered by GitBook
On this page
  • string
  • Functions
  • Anonymous functions
  • Functions

Was this helpful?

Edit on GitHub
  1. Utilities

String

Updated for version 3.38

string

An existing class for dealing with strings.

BeardLib doesn't add much to here.

Remember, this class uses periods not colons. So you'd call it like this: string.func.

Functions

Get

Function
Return Type
Description

pretty2(String str)

String

Converts str into a "pretty" string. Basically, it separates capitalized words with a space; so a string such as: "MyCoolString" would be "My Cool String"

key(String str)

String

Returns the Idstring key of str (Basically Idstring(str):key())

Anonymous functions

Functions

Function
Description

prnt(...)

Prints all arguments (separated by a tab). This function doesn't require to do tostring(). Though it won't print nulls.

prntf(String s, ...)

Like prnt but prints using string.format; so you can do things like prntf("My name is %s and I need a %s", "Dallas", "Medic bag")

PreviousPathNextSync

Last updated 3 years ago

Was this helpful?