Noir
  • πŸšΆβ€β™‚οΈIntro
  • πŸ“Tutorials
    • πŸŽ“Starting Noir
    • πŸ“–Libraries
    • πŸ–₯️Services
    • ❔Libraries VS Services
    • πŸ’¬Callbacks
    • πŸ’₯Classes
    • πŸ”ŽDebugging
  • πŸ“šExamples
  • β˜„οΈAPI Reference
    • Bootstrapper
    • Built-Ins
      • Classes
        • AITarget
        • Body
        • Command
        • Connection
        • Event
        • HTTPRequest
        • HTTPResponse
        • Library
        • Message
        • Object
        • Player
        • Service
        • Task
        • TickIterationProcess
        • Tracker
        • Vehicle
        • Widgets
          • MapLabelWidget
          • MapLineWidget
          • MapObjectWidget
          • PopupWidget
          • ScreenPopupWidget
          • Widget
      • Libraries
        • Base64
        • Dataclasses
        • Deprecation
        • Events
        • HTTP
        • JSON
        • Logging
        • Matrix
        • Number
        • String
        • Table
      • Services
        • CommandService
        • GameSettingsService
        • HTTPService
        • MessageService
        • NotificationService
        • ObjectService
        • PlayerService
        • TaskService
        • TPSService
        • UIService
        • VehicleService
    • Callbacks
    • Class
    • Classes
    • Debugging
    • Definition
    • Libraries
    • Noir
    • Services
    • TypeChecking
Powered by GitBook
On this page
  • Parameters
  • Returns
  • Parameters
  • Returns
  • Parameters
  • Returns
  • Parameters
  • Returns
Edit on GitHub
  1. API Reference
  2. Built-Ins
  3. Libraries

String

Noir.Libraries.String: NoirLibrary

A library containing helper methods relating to strings.


Noir.Libraries.String:Split(str, separator)

Splits a string by the provided separator (defaults to " ").

Parameters

  • str: string

  • separator: string|nil

Returns

  • table<integer, string>


Noir.Libraries.String:SplitLines(str)

Splits a string by their lines.

Parameters

  • str: string

Returns

  • table<integer, string>


Noir.Libraries.String:StartsWith(str, prefix)

Returns whether or not the provided string starts with the provided prefix.

Parameters

  • str: string

  • prefix: string

Returns

  • boolean


Noir.Libraries.String:EndsWith(str, suffix)

Returns whether or not the provided string ends with the provided suffix.

Parameters

  • str: string

  • suffix: string

Returns

  • boolean

PreviousNumberNextTable

Last updated 9 months ago

β˜„οΈ