Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Core.StringSpan Struct Reference

A region of character in a string. More...

Inheritance diagram for SiliconStudio.Core.StringSpan:
IEquatable< StringSpan >

Public Member Functions

 StringSpan (int start, int length)
 Initializes a new instance of the StringSpan struct. More...
 
bool Equals (StringSpan other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (StringSpan left, StringSpan right)
 
static bool operator!= (StringSpan left, StringSpan right)
 

Public Attributes

int Start
 The start of the span. More...
 
int Length
 The length of the span More...
 

Properties

bool IsValid [get]
 Gets a value indicating whether this instance is valid (Start greater or equal to 0, and Length greater than 0) More...
 
int Next [get]
 Gets the next position = Start + Length. More...
 

Detailed Description

A region of character in a string.

Definition at line 12 of file StringSpan.cs.

Constructor & Destructor Documentation

SiliconStudio.Core.StringSpan.StringSpan ( int  start,
int  length 
)

Initializes a new instance of the StringSpan struct.

Parameters
startThe start.
lengthThe length.

Definition at line 19 of file StringSpan.cs.

Member Function Documentation

bool SiliconStudio.Core.StringSpan.Equals ( StringSpan  other)

Definition at line 59 of file StringSpan.cs.

override bool SiliconStudio.Core.StringSpan.Equals ( object  obj)

Definition at line 64 of file StringSpan.cs.

override int SiliconStudio.Core.StringSpan.GetHashCode ( )

Definition at line 70 of file StringSpan.cs.

static bool SiliconStudio.Core.StringSpan.operator!= ( StringSpan  left,
StringSpan  right 
)
static

Definition at line 83 of file StringSpan.cs.

static bool SiliconStudio.Core.StringSpan.operator== ( StringSpan  left,
StringSpan  right 
)
static

Definition at line 78 of file StringSpan.cs.

override string SiliconStudio.Core.StringSpan.ToString ( )

Definition at line 88 of file StringSpan.cs.

References IsValid().

Member Data Documentation

int SiliconStudio.Core.StringSpan.Length

The length of the span

Definition at line 33 of file StringSpan.cs.

int SiliconStudio.Core.StringSpan.Start

The start of the span.

Definition at line 28 of file StringSpan.cs.

Property Documentation

bool SiliconStudio.Core.StringSpan.IsValid
get

Gets a value indicating whether this instance is valid (Start greater or equal to 0, and Length greater than 0)

true if this instance is valid; otherwise, false.

Definition at line 40 of file StringSpan.cs.

int SiliconStudio.Core.StringSpan.Next
get

Gets the next position = Start + Length.

The next.

Definition at line 52 of file StringSpan.cs.


The documentation for this struct was generated from the following file: