Origin Scripting Language
search
Ctrlk
originOS
Origin Scripting Language
  • checkBasics
    • Syntax
    • Types
    • The Execution Loop
    • Defining Variables
    • Assignment Operators
    • Local Scoping
    • Typed Variables
  • calculator-simpleOperators
    • Mathematical Usage
    • Text Usage
    • String Concatenation Operator (+)
    • Array Operations
    • Comparative Operators
    • Logical Operators
    • Bitwise operators
    • Pipe Operator (|>)
    • Nullish Coalescing Operator (??)
    • Precedence
  • arrow-progressProgram Flow
    • If Statements
    • Switch Case
    • Iteration
    • While And Until
  • person-runningCommands
    • General
    • Debugging
    • Modifiers
    • Rendering
  • brackets-curlyArrays And Objects
    • Making Arrays Or Objects
    • Modifying An Array
    • Clone Objects And References
    • Object Operations
    • Object Property Shorthand
  • window-flipEnvironment
    • The Window System
    • Events
    • Mouse Cursor
    • Camera
    • Sound System
    • Input Simulation
    • Running Other Languages
    • Notifications
    • Send Data Between Windows
    • Clipboard
    • Interfacing With Rightclick
    • Permissions
    • Files
  • databaseStorage
    • Save DB
    • Local DB
  • circle-plusCustom Syntax
    • Commands
    • Methods
    • Functions
    • Inline
    • Lambda
    • Spread Operator
    • Typed Parameters
    • Classes
    • Promises
  • brackets-roundFunctions
    • Math
    • Types
    • Encoding
    • function()
    • formatFileSize(bytes)
    • getGamepads()
    • import(path)
    • ouidNew()
    • parseFilePath(path)
  • Global Variables
    • Overview
    • System Information
    • User Information
    • Date and Time
    • Input State
    • Display and UI
    • Network
    • File System
  • scrollMethods
    • Strings
      • .len
      • .padStart(val,num)
      • .padEnd(val,num)
      • .append(val)
      • .prepend(val)
      • .ask()
      • .confirm()
      • .btoa()
      • .atob()
      • .left(num)
      • .right(num)
      • .jsonParse()
      • .getProto()
      • .startsWith(val)
      • .endsWith(val)
      • .wrapText(characters)
      • .trimText(characters)
      • .split(characters)
      • .count(val)
      • .trim(start, end)
      • .replace(old,new)
      • .delete(location)
      • .concat(val)
      • .reverse()
      • .replaceFirst(old,new)
      • .contains(val)
      • .oslTokenise()
      • .strip()
      • .index(val)
      • .toArr()
      • .toOrdArray()
      • .match(pattern)
      • Encoding
      • Hashing
      • Case
    • Numbers
    • Arrays
    • Objects
    • Functions
    • Keyboard
    • JSON
    • Types
    • Networking
    • Timestamp
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
githubEdit
  1. scrollMethods

Strings

.lenchevron-right.padStart(val,num)chevron-right.padEnd(val,num)chevron-right.append(val)chevron-right.prepend(val)chevron-right.ask()chevron-right.confirm()chevron-right.btoa()chevron-right.atob()chevron-right.left(num)chevron-right.right(num)chevron-right.jsonParse()chevron-right.getProto()chevron-right.startsWith(val)chevron-right.endsWith(val)chevron-right.wrapText(characters)chevron-right.trimText(characters)chevron-right.split(characters)chevron-right.count(val)chevron-right.trim(start, end)chevron-right.replace(old,new)chevron-right.delete(location)chevron-right.concat(val)chevron-right.reverse()chevron-right.replaceFirst(old,new)chevron-right.contains(val)chevron-right.oslTokenise()chevron-right.strip()chevron-right.index(val)chevron-right.toArr()chevron-right.toOrdArray()chevron-right.match(pattern)chevron-rightEncodingchevron-rightHashingchevron-rightCasechevron-right
PreviousFile Systemchevron-leftNext.lenchevron-right