Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.ModAPI.Ingame.Utilities.StringSegment

Morten Aune Lyrstad edited this page Apr 16, 2022 · 47 revisions

IndexNamespace Index

StringSegment Struct

public struct StringSegment

Represents a segment of a string.

Namespace: VRage.Game.ModAPI.Ingame.Utilities
Assembly: VRage.Game.dll

Fields

Member Description
\%1int Length](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Length) The length of the segment
\%1int Start](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Start) Where the segment starts
\%1string Text](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Text) The original text string

Properties

Member Description
\%1bool IsCached { get; }](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.IsCached) Determines whether this segment has been pre-cached in such a way that no allocation will occur when using ToString()
\%1bool IsEmpty { get; }](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.IsEmpty) Determines whether this is an empty/undefined string segment
\%1char Item { get; }](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Item)

Constructors

Member Description
\%1StringSegment(string)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment..ctor)
\%1StringSegment(string, int, int)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment..ctor)

Methods

Member Description
\%1bool Equals(object)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Equals) Indicates whether this instance and a specified object are equal.
\%1bool Equals(string)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Equals) Compares this string segment with the given string in a case sensitive manner.
\%1bool Equals(StringSegment)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.Equals) Compares this string segment with another in a case sensitive manner.
\%1bool EqualsIgnoreCase(string)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.EqualsIgnoreCase) Compares this string segment with the given string in a case insensitive manner.
\%1bool EqualsIgnoreCase(StringSegment)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.EqualsIgnoreCase) Compares this string segment with another in a case insensitive manner.
\%1int GetHashCode()](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.GetHashCode) Returns the hash code for this instance.
\%1void GetLines(List\%1StringSegment>)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.GetLines) Fills a list with individual string segments representing the lines of text within this string segment, separated by newlines.
\%1void GetLines(List\%1string>)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.GetLines) Fills a list with individual strings representing the lines of text within this string segment, separated by newlines.
\%1int IndexOf(char)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.IndexOf) Reports the zero-based index of the first occurence of the specified character, relative to Start . Returns -1 if nothing was found.
\%1int IndexOf(char, int)](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.IndexOf) Reports the zero-based index of the first occurence of the specified character, relative to Start . Returns -1 if nothing was found.
\%1int IndexOfAny(Char\%1])](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.IndexOfAny) Reports the zero-based index of the first occurence of one of the provided characters, relative to Start . Returns -1 if nothing was found.
\%1string ToString()](VRage.Game.ModAPI.Ingame.Utilities.StringSegment.ToString) Returns a string containing just this segment.

Clone this wiki locally