This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.ModAPI.Ingame.Utilities.StringSegment
Morten Aune Lyrstad edited this page Apr 16, 2022
·
47 revisions
← Index ← Namespace Index
public struct StringSegmentRepresents a segment of a string.
Namespace: VRage.Game.ModAPI.Ingame.Utilities
Assembly: VRage.Game.dll
| Member | Description |
|---|---|
| \int Length | The length of the segment |
| \int Start | Where the segment starts |
| \string Text | The original text string |
| Member | Description |
|---|---|
| \bool IsCached { get; } | Determines whether this segment has been pre-cached in such a way that no allocation will occur when using ToString() |
| \bool IsEmpty { get; } | Determines whether this is an empty/undefined string segment |
| \char Item { get; } |
| Member | Description |
|---|---|
| \StringSegment(string) | |
| \StringSegment(string, int, int) |
| Member | Description |
|---|---|
| \bool Equals(object) | Indicates whether this instance and a specified object are equal. |
| \bool Equals(string) | Compares this string segment with the given string in a case sensitive manner. |
| \bool Equals(StringSegment) | Compares this string segment with another in a case sensitive manner. |
| \bool EqualsIgnoreCase(string) | Compares this string segment with the given string in a case insensitive manner. |
| \bool EqualsIgnoreCase(StringSegment) | Compares this string segment with another in a case insensitive manner. |
| \int GetHashCode() | Returns the hash code for this instance. |
| \void GetLines(List\) | Fills a list with individual string segments representing the lines of text within this string segment, separated by newlines. |
| \void GetLines(List\) | Fills a list with individual strings representing the lines of text within this string segment, separated by newlines. |
| \int IndexOf(char) | Reports the zero-based index of the first occurence of the specified character, relative to Start . Returns -1 if nothing was found. |
| \int IndexOf(char, int) | Reports the zero-based index of the first occurence of the specified character, relative to Start . Returns -1 if nothing was found. |
| \int IndexOfAny(Char\[]) | Reports the zero-based index of the first occurence of one of the provided characters, relative to Start . Returns -1 if nothing was found. |
| \string ToString() | Returns a string containing just this segment. |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!