52 skip ? StringSplitOptions.RemoveEmptyEntries : StringSplitOptions.None
80 provider.
RegisterObject<
string>(
"IsLetters", s => s.All(
char.IsLetter));
81 provider.
RegisterObject<
string>(
"IsDigits", s => s.All(
char.IsDigit));
82 provider.
RegisterObject<
string>(
"IsWhiteSpace", s => s.All(
char.IsWhiteSpace));
88 (_, i) => s[(
int)i].ToString(),
98 args =>
string.Format(s, args.Cast<
object?>().ToArray()),
122 (_, start, end) => s.Substring((
int)start, (
int)end),
134 (_, str) => (decimal)s.IndexOf(str, StringComparison.Ordinal),
143 (_, str) => s.Contains(str),
153 (_, str) => (decimal)s.LastIndexOf(str, StringComparison.Ordinal),
163 (_, oldStr, newStr) => s.Replace(oldStr, newStr),
203 (_, padding) => s.PadLeft((
int)padding),
214 (_, padding) => s.PadRight((
int)padding),
225 (_, start, count) => s.Remove((
int)start, (
int)count),
237 (_, index, str) => s.Insert((
int)index, str),
249 (_, str) => s.EndsWith(str, StringComparison.Ordinal),
259 (_, str) => s.StartsWith(str, StringComparison.Ordinal),
Contains Static Data for the BadScript Language.
const string ARRAY_ACCESS_OPERATOR_NAME
Implements String Extensions.
static BadObject StringSplit(string str, BadObject splitChar, BadObject skipEmpty)
Split a string into an array.
override void AddExtensions(BadInteropExtensionProvider provider)
Gets thrown by the runtime.
Public Extension API for the BS2 Runtime.
void RegisterObject(Type t, string propName, BadObject obj)
Registers the specified extension for the specified type.
Non Generic Interop Function.
Interop Function taking an array of arguments.
Implements a Dynamic List/Array for the BadScript Language.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Provides function parameter info.
Helper Class that Builds a Native Class from a Prototype.
static BadClassPrototype GetNative(string name)
Returns a Native Class Prototype for the given Native Type.
Implements the Interface for Native Boolean.
Implements the Interface for Native Strings.
Contains Shared Data Structures and Functionality.
Contains Common Interop Extensions for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Interop Function Classes for the BadScript2 Language.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains Runtime Function Objects.
Contains the Native Runtime Objects.
Contains Runtime Type Objects.
Contains the Runtime Objects.