3DCoat Python API
The 3DCoat Python API documentation.
|
Public Member Functions | |
__init__ (self) | |
__init__ (self, str Src) | |
__init__ (self, str Src, int StartIndex, int Count) | |
__init__ (self, any Src) | |
__init__ (self, int Length, any Fill) | |
__init__ (self) | |
Copy (self, str _0) | |
----------------------------------------------------------------------— | |
Copy (self, str _0, any StartIndex, any Count) | |
Copy (self, any _0) | |
__assign__ (self, str _0) | |
__assign__ (self) | |
str | ToCharPtr (self) |
----------------------------------------------------------------------— | |
any | ToNonConstCharPtr (self) |
any | __getitem__ (self, int CharIndex) |
any | __setitem__ (self, int CharIndex) |
int | Length (self) |
----------------------------------------------------------------------— | |
SetLength (self, int Length, any Fill) | |
Ensures needed capacity and sets a specified length. | |
CalcLength (self) | |
Fill (self, any c) | |
Path.CalcLength();. | |
bool | IsEmpty (self) |
----------------------------------------------------------------------— | |
bool | empty (self) |
Clear (self) | |
bool | StartsWith (self, str Str, bool NoCase=False) |
Case insesitive compare can be specified. | |
bool | EndsWith (self, str Str, bool NoCase=False) |
Case insesitive compare can be specified. | |
Append (self, str _0) | |
----------------------------------------------------------------------— | |
Append (self, any _0) | |
Append (self, str _0, any StartIndex, any Count) | |
Append (self, any _0) | |
Append (self, any _0, any Count) | |
Append (self, bool _0) | |
Append (self, int _0) | |
Append (self, float _0, int Prec=2) | |
Append (self, float _0, int Prec=6) | |
__iadd__ (self, str _0) | |
__iadd__ (self, any _0) | |
__iadd__ (self, any _0) | |
__iadd__ (self, bool _0) | |
__iadd__ (self, int _0) | |
__iadd__ (self, float _0) | |
__iadd__ (self, float _0) | |
AppendPath (self, str Path) | |
----------------------------------------------------------------------— | |
Insert (self, int Index, str _1) | |
----------------------------------------------------------------------— | |
Insert (self, int Index, str _1, any StartIndex, any Count) | |
Insert (self, int Index, any _1) | |
Insert (self, int Index, any _1, any Count) | |
Insert (self, int Index, bool _1) | |
Insert (self, int Index, int _1) | |
Insert (self, int Index, float _1, int Prec=2) | |
Insert (self, int Index, float _1, int Prec=6) | |
Remove (self, int StartIndex) | |
and continuing through the last position. | |
Remove (self, int StartIndex, int Count) | |
beginning at a specified position. | |
Replace (self, any Char, any WithChar) | |
Replaces all occurrences of a specified character in this instance// with another specified character. | |
ReplaceCommaWithDot (self) | |
Replace (self, any Char, any WithChar, int StartIndex, int Count) | |
int | Replace (self, str String, str WithString, bool NoCase=False) |
Case insensitive compare can be specified. | |
int | Replace (self, str String, str WithString, int StartIndex, bool NoCase=False) |
Replaces in a substring beginning from a specified position to the end. | |
int | Replace (self, str String, str WithString, int StartIndex, int Count, bool NoCase=False) |
Replaces only within a substring of this instance. | |
int | ReplaceFirst (self, str String, str WithString, bool NoCase=False) |
Replaces first occurrence of a specified string in this instance with another specified string. | |
int | ReplaceFirst (self, str String, str WithString, int StartIndex, int Count, bool NoCase=False) |
Replaces only within a substring of this instance. | |
ReplaceAny (self, str Chars, any WithChar) | |
specified list of characters with another specified character. | |
ReplaceAny (self, str Chars, any WithChar, int StartIndex, int Count) | |
Replaces only within a substring of this instance. | |
TrimStart (self, str TrimChars) | |
from the beginning of this instance. | |
TrimEnd (self, str TrimChars) | |
from the end of this instance. | |
Trim (self, str TrimChars) | |
from the beginning and end of this instance. | |
PadLeft (self, int TotalWidth, any PaddingChar) | |
spaces or a specified character for a specified total length. | |
PadRight (self, int TotalWidth, any PaddingChar) | |
spaces or a specified character for a specified total length. | |
bool | Contains (self, any c) |
Returns a value indicating whether the specified character occurs within this string. | |
bool | Contains (self, str Str, bool NoCase=False) |
Case insesitive compare can be specified. | |
int | IndexOf (self, any c) |
where the specified character is found, or -1 if it is not. | |
int | IndexOfAny (self, str Chars) |
where any character from the specified list of characters is found, or -1 if it is not. | |
int | IndexOfAny (self, str Chars, int StartIndex) |
The search starts at a specified character position. | |
int | IndexOfAny (self, str Chars, int StartIndex, int Count) |
The search starts at a specified character position and examines a specified number of character positions. | |
int | LastIndexOf (self, any c) |
where the specified character is found, or -1 if it is not. | |
int | LastIndexOf (self, any c, int StartIndex) |
proceeds backwards towards the beginning. | |
int | LastIndexOf (self, any c, int StartIndex, int Count) |
or a specified number of character positions have been examined. | |
int | LastIndexOf (self, str Str, bool NoCase=False) |
Case insesitive compare can be specified. | |
int | LastIndexOf (self, str Str, int StartIndex, bool NoCase=False) |
The search starts at a specified character position and proceeds backwards towards the beginning. | |
int | LastIndexOf (self, str Str, int StartIndex, int Count, bool NoCase=False) |
until either the string is found or a specified character positions have been examined. | |
int | LastIndexOfAny (self, str Chars) |
where any character from the specified list of characters is found, or -1 if it is not. | |
int | LastIndexOfAny (self, str Chars, int StartIndex) |
proceeds backwards towards the beginning. | |
int | LastIndexOfAny (self, str Chars, int StartIndex, int Count) |
is found or a specified number of character positions have been examined. | |
MakeLower (self, int start=0) | |
MakeUpper (self, int start=0) | |
Converts this string instance to lowercase. | |
int | GetHashCode (self, bool NoCase=False) |
----------------------------------------------------------------------— | |
RemoveFileExtension (self) | |
----------------------------------------------------------------------— | |
RemoveFileName (self) | |
RemoveFilePath (self) | |
RemoveFileAbsPath (self, str AbsPath) | |
If string contains absolute path to file below specified "AbsPath", it will be removed. | |
AppendFileRelPath (self, str RelPath) | |
SetFileExtension (self, str Extension) | |
----------------------------------------------------------------------— | |
SetFileDefaultExtension (self, str DefaultExtension) | |
SetFilePath (self, str Path) | |
If there's no extension set the default. | |
SetFileDefaultPath (self, str DefaultPath) | |
EnsureTrailingBackslash (self) | |
If there's no path set the default. | |
EnsureTrailingSlash (self) | |
EnsureTrailingPlatformSlash (self) | |
SlashesToBackSlashes (self) | |
BackSlashesToSlashes (self) | |
Replaces '/' with '\'. | |
MakePlatformSlashes (self) | |
Replaces '\' with '/'. | |
int | CalcUTF8Length (self, int StartIndex) |
Init (self) | |
Free (self) | |
__init__ (self, any Src) | |
__init__ (self, str Src) | |
Copy (self, any _0) | |
Copy (self, any _0) | |
__assign__ (self, any _0) | |
__assign__ (self, any _0) | |
toWstring (self, any ws) | |
any | toWstring (self) |
Append (self, str _0) | |
Append (self, any _0) | |
__iadd__ (self, str _0) | |
__iadd__ (self, any _0) | |
Static Public Member Functions | |
bool | Equals (str _0, str _1) |
----------------------------------------------------------------------— | |
bool | EqualsNoCase (str _0, str _1) |
bool | EqualsNoCase (str _0, str _1, any MaxLength) |
int | Compare (str _0, str _1) |
----------------------------------------------------------------------— | |
int | Compare (str _0, str _1, any MaxLength) |
int | CompareNoCase (str _0, str _1) |
int | CompareNoCase (str _0, str _1, any MaxLength) |
bool | EqualsPath (str _0, str _1) |
----------------------------------------------------------------------— | |
bool | EqualsPath (str _0, str _1, any MaxLength) |
int | ComparePath (str _0, str _1) |
----------------------------------------------------------------------— | |
int | ComparePath (str _0, str _1, any MaxLength) |
any | ToLower (any c) |
----------------------------------------------------------------------— | |
any | ToUpper (any c) |
bool | CharIsLower (int c) |
----------------------------------------------------------------------— | |
bool | CharIsUpper (int c) |
bool | CharIsAlpha (int c) |
bool | CharIsNumeric (int c) |
bool | CharIsHexadecimal (int c) |
bool | CharIsNewLine (int c) |
bool | CharIsTab (int c) |
bool | CharIsWhitespace (int c) |
bool | CharIsDecimalPoint (int c) |
bool | CharIsSign (int c) |
bool | CharIsExponent (int c) |
bool | ToInt (str Str, int Value) |
----------------------------------------------------------------------— | |
bool | ToFloat (str Str, float Value) |
Digits Are one or more decimal digits. | |
coat.cStr.__init__ | ( | self | ) |
coat.cStr.__init__ | ( | self, | |
str | Src ) |
coat.cStr.__init__ | ( | self, | |
str | Src, | ||
int | StartIndex, | ||
int | Count ) |
coat.cStr.__init__ | ( | self, | |
any | Src ) |
coat.cStr.__init__ | ( | self, | |
int | Length, | ||
any | Fill ) |
coat.cStr.__init__ | ( | self | ) |
coat.cStr.__init__ | ( | self, | |
any | Src ) |
coat.cStr.__init__ | ( | self, | |
str | Src ) |
coat.cStr.__assign__ | ( | self | ) |
coat.cStr.__assign__ | ( | self, | |
any | _0 ) |
coat.cStr.__assign__ | ( | self, | |
any | _0 ) |
coat.cStr.__assign__ | ( | self, | |
str | _0 ) |
any coat.cStr.__getitem__ | ( | self, | |
int | CharIndex ) |
coat.cStr.__iadd__ | ( | self, | |
any | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
any | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
any | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
bool | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
float | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
float | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
int | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
str | _0 ) |
coat.cStr.__iadd__ | ( | self, | |
str | _0 ) |
any coat.cStr.__setitem__ | ( | self, | |
int | CharIndex ) |
coat.cStr.Append | ( | self, | |
any | _0 ) |
coat.cStr.Append | ( | self, | |
any | _0 ) |
coat.cStr.Append | ( | self, | |
any | _0 ) |
coat.cStr.Append | ( | self, | |
any | _0, | ||
any | Count ) |
coat.cStr.Append | ( | self, | |
bool | _0 ) |
coat.cStr.Append | ( | self, | |
float | _0, | ||
int | Prec = 2 ) |
coat.cStr.Append | ( | self, | |
float | _0, | ||
int | Prec = 6 ) |
coat.cStr.Append | ( | self, | |
int | _0 ) |
coat.cStr.Append | ( | self, | |
str | _0 ) |
----------------------------------------------------------------------—
coat.cStr.Append | ( | self, | |
str | _0 ) |
coat.cStr.Append | ( | self, | |
str | _0, | ||
any | StartIndex, | ||
any | Count ) |
coat.cStr.AppendFileRelPath | ( | self, | |
str | RelPath ) |
coat.cStr.AppendPath | ( | self, | |
str | Path ) |
----------------------------------------------------------------------—
coat.cStr.BackSlashesToSlashes | ( | self | ) |
Replaces '/' with '\'.
coat.cStr.CalcLength | ( | self | ) |
int coat.cStr.CalcUTF8Length | ( | self, | |
int | StartIndex ) |
|
static |
|
static |
|
static |
|
static |
|
static |
----------------------------------------------------------------------—
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
coat.cStr.Clear | ( | self | ) |
|
static |
----------------------------------------------------------------------—
|
static |
|
static |
|
static |
|
static |
----------------------------------------------------------------------—
|
static |
bool coat.cStr.Contains | ( | self, | |
any | c ) |
Returns a value indicating whether the specified character occurs within this string.
bool coat.cStr.Contains | ( | self, | |
str | Str, | ||
bool | NoCase = False ) |
Case insesitive compare can be specified.
coat.cStr.Copy | ( | self, | |
any | _0 ) |
coat.cStr.Copy | ( | self, | |
any | _0 ) |
coat.cStr.Copy | ( | self, | |
any | _0 ) |
coat.cStr.Copy | ( | self, | |
str | _0 ) |
----------------------------------------------------------------------—
coat.cStr.Copy | ( | self, | |
str | _0, | ||
any | StartIndex, | ||
any | Count ) |
bool coat.cStr.empty | ( | self | ) |
bool coat.cStr.EndsWith | ( | self, | |
str | Str, | ||
bool | NoCase = False ) |
Case insesitive compare can be specified.
coat.cStr.EnsureTrailingBackslash | ( | self | ) |
If there's no path set the default.
coat.cStr.EnsureTrailingPlatformSlash | ( | self | ) |
coat.cStr.EnsureTrailingSlash | ( | self | ) |
|
static |
----------------------------------------------------------------------—
|
static |
|
static |
|
static |
----------------------------------------------------------------------—
|
static |
coat.cStr.Fill | ( | self, | |
any | c ) |
Path.CalcLength();.
coat.cStr.Free | ( | self | ) |
int coat.cStr.GetHashCode | ( | self, | |
bool | NoCase = False ) |
----------------------------------------------------------------------—
int coat.cStr.IndexOf | ( | self, | |
any | c ) |
where the specified character is found, or -1 if it is not.
int coat.cStr.IndexOfAny | ( | self, | |
str | Chars ) |
where any character from the specified list of characters is found, or -1 if it is not.
int coat.cStr.IndexOfAny | ( | self, | |
str | Chars, | ||
int | StartIndex ) |
The search starts at a specified character position.
int coat.cStr.IndexOfAny | ( | self, | |
str | Chars, | ||
int | StartIndex, | ||
int | Count ) |
The search starts at a specified character position and examines a specified number of character positions.
coat.cStr.Init | ( | self | ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
any | _1 ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
any | _1, | ||
any | Count ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
bool | _1 ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
float | _1, | ||
int | Prec = 2 ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
float | _1, | ||
int | Prec = 6 ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
int | _1 ) |
coat.cStr.Insert | ( | self, | |
int | Index, | ||
str | _1 ) |
----------------------------------------------------------------------—
coat.cStr.Insert | ( | self, | |
int | Index, | ||
str | _1, | ||
any | StartIndex, | ||
any | Count ) |
bool coat.cStr.IsEmpty | ( | self | ) |
----------------------------------------------------------------------—
int coat.cStr.LastIndexOf | ( | self, | |
any | c ) |
where the specified character is found, or -1 if it is not.
int coat.cStr.LastIndexOf | ( | self, | |
any | c, | ||
int | StartIndex ) |
proceeds backwards towards the beginning.
int coat.cStr.LastIndexOf | ( | self, | |
any | c, | ||
int | StartIndex, | ||
int | Count ) |
or a specified number of character positions have been examined.
int coat.cStr.LastIndexOf | ( | self, | |
str | Str, | ||
bool | NoCase = False ) |
Case insesitive compare can be specified.
int coat.cStr.LastIndexOf | ( | self, | |
str | Str, | ||
int | StartIndex, | ||
bool | NoCase = False ) |
The search starts at a specified character position and proceeds backwards towards the beginning.
int coat.cStr.LastIndexOf | ( | self, | |
str | Str, | ||
int | StartIndex, | ||
int | Count, | ||
bool | NoCase = False ) |
until either the string is found or a specified character positions have been examined.
int coat.cStr.LastIndexOfAny | ( | self, | |
str | Chars ) |
where any character from the specified list of characters is found, or -1 if it is not.
int coat.cStr.LastIndexOfAny | ( | self, | |
str | Chars, | ||
int | StartIndex ) |
proceeds backwards towards the beginning.
int coat.cStr.LastIndexOfAny | ( | self, | |
str | Chars, | ||
int | StartIndex, | ||
int | Count ) |
is found or a specified number of character positions have been examined.
int coat.cStr.Length | ( | self | ) |
----------------------------------------------------------------------—
coat.cStr.MakeLower | ( | self, | |
int | start = 0 ) |
coat.cStr.MakePlatformSlashes | ( | self | ) |
Replaces '\' with '/'.
coat.cStr.MakeUpper | ( | self, | |
int | start = 0 ) |
Converts this string instance to lowercase.
coat.cStr.PadLeft | ( | self, | |
int | TotalWidth, | ||
any | PaddingChar ) |
spaces or a specified character for a specified total length.
coat.cStr.PadRight | ( | self, | |
int | TotalWidth, | ||
any | PaddingChar ) |
spaces or a specified character for a specified total length.
coat.cStr.Remove | ( | self, | |
int | StartIndex ) |
and continuing through the last position.
coat.cStr.Remove | ( | self, | |
int | StartIndex, | ||
int | Count ) |
beginning at a specified position.
coat.cStr.RemoveFileAbsPath | ( | self, | |
str | AbsPath ) |
If string contains absolute path to file below specified "AbsPath", it will be removed.
coat.cStr.RemoveFileExtension | ( | self | ) |
----------------------------------------------------------------------—
coat.cStr.RemoveFileName | ( | self | ) |
coat.cStr.RemoveFilePath | ( | self | ) |
coat.cStr.Replace | ( | self, | |
any | Char, | ||
any | WithChar ) |
Replaces all occurrences of a specified character in this instance// with another specified character.
coat.cStr.Replace | ( | self, | |
any | Char, | ||
any | WithChar, | ||
int | StartIndex, | ||
int | Count ) |
int coat.cStr.Replace | ( | self, | |
str | String, | ||
str | WithString, | ||
bool | NoCase = False ) |
Case insensitive compare can be specified.
int coat.cStr.Replace | ( | self, | |
str | String, | ||
str | WithString, | ||
int | StartIndex, | ||
bool | NoCase = False ) |
Replaces in a substring beginning from a specified position to the end.
int coat.cStr.Replace | ( | self, | |
str | String, | ||
str | WithString, | ||
int | StartIndex, | ||
int | Count, | ||
bool | NoCase = False ) |
Replaces only within a substring of this instance.
coat.cStr.ReplaceAny | ( | self, | |
str | Chars, | ||
any | WithChar ) |
specified list of characters with another specified character.
coat.cStr.ReplaceAny | ( | self, | |
str | Chars, | ||
any | WithChar, | ||
int | StartIndex, | ||
int | Count ) |
Replaces only within a substring of this instance.
coat.cStr.ReplaceCommaWithDot | ( | self | ) |
int coat.cStr.ReplaceFirst | ( | self, | |
str | String, | ||
str | WithString, | ||
bool | NoCase = False ) |
Replaces first occurrence of a specified string in this instance with another specified string.
int coat.cStr.ReplaceFirst | ( | self, | |
str | String, | ||
str | WithString, | ||
int | StartIndex, | ||
int | Count, | ||
bool | NoCase = False ) |
Replaces only within a substring of this instance.
coat.cStr.SetFileDefaultExtension | ( | self, | |
str | DefaultExtension ) |
coat.cStr.SetFileDefaultPath | ( | self, | |
str | DefaultPath ) |
coat.cStr.SetFileExtension | ( | self, | |
str | Extension ) |
----------------------------------------------------------------------—
coat.cStr.SetFilePath | ( | self, | |
str | Path ) |
If there's no extension set the default.
coat.cStr.SetLength | ( | self, | |
int | Length, | ||
any | Fill ) |
Ensures needed capacity and sets a specified length.
Fill char can be specified.
coat.cStr.SlashesToBackSlashes | ( | self | ) |
bool coat.cStr.StartsWith | ( | self, | |
str | Str, | ||
bool | NoCase = False ) |
Case insesitive compare can be specified.
str coat.cStr.ToCharPtr | ( | self | ) |
----------------------------------------------------------------------—
|
static |
Digits Are one or more decimal digits.
|
static |
----------------------------------------------------------------------—
|
static |
----------------------------------------------------------------------—
any coat.cStr.ToNonConstCharPtr | ( | self | ) |
|
static |
any coat.cStr.toWstring | ( | self | ) |
coat.cStr.toWstring | ( | self, | |
any | ws ) |
coat.cStr.Trim | ( | self, | |
str | TrimChars ) |
from the beginning and end of this instance.
coat.cStr.TrimEnd | ( | self, | |
str | TrimChars ) |
from the end of this instance.
coat.cStr.TrimStart | ( | self, | |
str | TrimChars ) |
from the beginning of this instance.