-
首页
-
C4D R23.110 C++ SDK
#include <c4d_string.h>
详细描述
A
String
is a variable-length sequence of UTF-32 encoded Unicode characters.
String
provides methods and operators to simplify using character sequences.
-
注意
-
Cinema 4D
strings are fully using UTF-32 Unicode characters. To avoid problems with Unicodes try to always use Utf32Char in your code unless you need to interface with the system or existing libraries.
Find
|
Bool
|
FindFirst
(const
String
&cs,
Int32
*pos,
Int
start=0) const
|
Bool
|
FindLast
(const
String
&cs,
Int32
*pos,
Int
start=-1) const
|
Bool
|
FindFirst
(
Utf32Char
ch,
Int32
*pos,
Int
start=0) const
|
Bool
|
FindLast
(
Utf32Char
ch,
Int32
*pos,
Int
start=-1) const
|
Bool
|
FindFirstUpper
(const
String
&findupper,
Int32
*pos,
Int
start) const
|
Bool
|
FindLastUpper
(const
String
&findupper,
Int32
*pos,
Int
start) const
|
Conversion from Number
|
static
String
|
MemoryToString
(
Int64
mem)
|
static
String
|
HexToString
(
UInt32
v,
Bool
prefix0x=true)
|
static
String
|
HexToString
(
UInt64
v,
Bool
prefix0x=true)
|
static
String
|
IntToString
(
Int32
v)
|
static
String
|
IntToString
(
Int64
v)
|
static
String
|
UIntToString
(
UInt32
v)
|
static
String
|
UIntToString
(
UInt64
v)
|
static
String
|
FloatToString
(
Float32
v,
Int32
vvk=-1,
Int32
nnk=-3)
|
static
String
|
FloatToString
(
Float64
v,
Int32
vvk=-1,
Int32
nnk=-3)
|
static
String
|
FloatToStringDeprecated
(
Float32
v,
Int32
vvk,
Int32
nnk=-1,
Bool
e=false,
Utf32Char
xchar='0')
|
static
String
|
FloatToStringDeprecated
(
Float64
v,
Int32
vvk,
Int32
nnk=-1,
Bool
e=false,
Utf32Char
xchar='0')
|
static
String
|
VectorToString
(const
Vector32
&v,
Int32
nnk=-1)
|
static
String
|
VectorToString
(const
Vector64
&v,
Int32
nnk=-1)
|
Additional Inherited Members
|
using
|
ValueType
=
Utf32Char
|
using
|
ConstIterator
=
StringIterator
|
using
|
Iterator
=
ConstIterator
|
|
MAXON_DEFAULT_REFERENCE_CONSTRUCTORS
(
String
, Reference)
|
|
String
(const
Char
*str,
Int
count, const StringDecodingRef &stringDecoding=
GetUtf8DefaultDecoder
())
|
|
String
(const
Char
*str, const StringDecodingRef &stringDecoding=
GetUtf8DefaultDecoder
())
|
|
String
(const
Block
< const
Char
> &str, const StringDecodingRef &stringDecoding=
GetUtf8DefaultDecoder
())
|
|
String
(const
CString
&str, const StringDecodingRef &stringDecoding=
GetUtf8DefaultDecoder
())
|
|
String
(const
Utf32Char
*str,
Int
count)
|
|
String
(const
Block
< const
Utf32Char
> &str)
|
|
String
(const
Utf16Char
*str,
Int
count)
|
|
String
(
Int
count,
Utf32Char
fillChar)
|
|
String
(const
Id
&prefix, const void *ptr)
|
|
String
(const
String
&prefix, const void *ptr,
Bool
prefix0x=true)
|
Utf32Char
|
operator[]
(
Int
pos) const
|
MAXON_ATTRIBUTE_FORCE_INLINE
StringInterface::CharPtr
|
operator[]
(
Int
position)
|
ConstIterator
|
Begin
() const
|
ConstIterator
|
End
() const
|
Bool
|
IsEmpty
() const
|
Bool
|
IsPopulated
() const
|
String
&
|
operator+=
(const
String
&str)
|
static const
String
&
|
GetLineEnd
()
|
构造函数 & 析构函数文档编制
◆
String()
[1/10]
Default constructor.
◆
String()
[2/10]
Copy constructor.
-
参数
-
[in]
|
cs
|
This
String
's characters are used to construct the
String
.
|
◆
String()
[3/10]
◆
String()
[4/10]
Copy constructor.
-
参数
-
[in]
|
cs
|
This
String
's characters are used to construct the
String
.
|
◆
String()
[5/10]
Move constructor.
-
参数
-
[in]
|
str
|
This
String
's characters are used to construct the
String
.
|
◆
String()
[6/10]
Constructs a string with the UTF-16 encoded Unicode characters in
s
.
-
由于
-
R17.032
-
参数
-
[in]
|
s
|
The Unicode character array to initialize the string from. The pointed array is copied.
|
[in]
|
count
|
The number of Utf16Char characters. If
-1
is passed all characters will be copied until
'\0'
is found.
Note that the string may have a different length than what you specify here as the UTF-16 encoding is transformed into a UTF-32 encoding.
|
◆
String()
[7/10]
Constructs a string with the UTF-32 encoded Unicode characters in
s
.
-
由于
-
R17.032
-
参数
-
[in]
|
s
|
The Unicode character array to initialize the string from. The pointed array is copied.
|
[in]
|
count
|
The number of Utf32Char characters. If
-1
is passed all characters will be copied until
'\0'
is found. Otherwise the resulting string length will match the given count.
|
◆
String()
[8/10]
Constructs a
String
with the characters in
cstr
.
-
注意
-
If you have static strings use "..."_s instead.
-
参数
-
[in]
|
cstr
|
The character array in UTF8 encoding.
|
[in]
|
stringDecoding
|
Encoding type.
|
◆
String()
[9/10]
Constructs a
String
with the characters in
cstr
.
Deprecated
. Use the constructor with StringDecodingRef.
-
参数
-
[in]
|
cstr
|
The character array to initialize the string with. The passed data is decoded using
type
to UTF-32 internally.
|
[in]
|
type
|
The string encoding used to interpret
cstr
.
|
◆
String()
[10/10]
Constructs a string filled with the same character.
-
参数
-
[in]
|
count
|
The number of characters.
|
[in]
|
fillch
|
The fill character.
|
成员函数文档编制
◆
operator=()
[1/4]
Assigns the characters from
str
.
-
警告
-
The assignment operators makes string copies.
-
参数
-
[in]
|
str
|
The source string to assign.
|
-
返回
-
The string that was set. Assigned to the left-hand operand.
◆
operator=()
[2/4]
◆
operator=()
[3/4]
◆
operator=()
[4/4]
◆
operator+=()
Concatenates the strings and sets the left-hand operand to the result.
-
警告
-
The assignment operators makes string copies.
-
参数
-
[in]
|
str
|
The right-hand operand string.
|
-
返回
-
The concatenated string. Assigned to the left-hand operand.
◆
CompareDeprecated()
Int
CompareDeprecated
|
(
|
const
String
&
|
cs
|
)
|
const
|
Compare the strings and returns their relationship.
Deprecated
. This is equivalent to maxon::String::Compare(cs, maxon::STRINGCOMPARISON::MEMORY).
-
注意
-
Comparison is case sensitive.
-
参数
-
[in]
|
cs
|
The string to compare against.
|
-
返回
-
0
if the strings are identical, <
0
if the string is less than
cs
, or >
0
if the string is greater than
cs
.
◆
LexCompare()
Compares the
String
object with another string and returns their relationship.
Deprecated
. This is equivalent to maxon::String::Compare(cs, maxon::STRINGCOMPARISON::CASEINSENSITIVE).
-
参数
-
[in]
|
cs
|
The string to compare against.
|
-
返回
-
0
if the strings are identical, <
0
if the string is less than
cs
, or >
0
if the string is greater than
cs
.
◆
ComparePart()
Compares a part of the string, specified by the position
pos
and the length
cnt
, with
str
.
Equivalent to
SubStr
(
pos
,
cnt
).
比较
(
str
).
Deprecated
. This is equivalent to maxon::String::ComparePart(str, maxon::STRINGCOMPARISON::MEMORY, pos, cnt).
-
参数
-
[in]
|
str
|
The string to compare against.
|
[in]
|
cnt
|
The number of characters of the part.
|
[in]
|
pos
|
The position of the part.
|
-
返回
-
0
if the strings are identical, <
0
if the string is less than
str
, or >
0
if the string is greater than
str
.
◆
LexComparePart()
Compares a part of the string, specified by the position
pos
and the length
cnt
, with
str
and returns their relationship.
Equivalent to
SubStr
(
pos
,
cnt
).
LexCompare
(
str
).
Deprecated
. This is equivalent to maxon::String::ComparePart(str, maxon::STRINGCOMPARISON::CASEINSENSITIVE, pos, cnt).
-
参数
-
[in]
|
str
|
The string to compare against.
|
[in]
|
cnt
|
The number of characters of the part.
|
[in]
|
pos
|
The position of the part.
|
-
返回
-
0
if the strings are identical, <
0
if the string is less than
str
, or >
0
if the string is greater than
str
.
◆
FindFirst()
[1/2]
Searches the string for the first match of the substring.
Deprecated
. This is equivalent to maxon::String::Find(cs, pos, start).
-
参数
-
[in]
|
cs
|
Substring to search for.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The starting position in the string for the search:
0
<=
start
< GetLength().
|
-
返回
-
true
if the substring was found, otherwise
false
.
◆
FindLast()
[1/2]
Searches the string for the last match of the substring.
Deprecated
. This is equivalent to maxon::String::FindLast(cs, pos, start == -1 ?
maxon::StringEnd()
:
maxon::StringPosition
(start + 1)).
-
参数
-
[in]
|
cs
|
The substring to search for.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The position to start from when searching backwards:
0
<=
start
< GetLength() or
-1
for the end.
|
-
返回
-
true
if the substring was found, otherwise
false
.
◆
FindFirst()
[2/2]
Searches the string for the first match of character
ch
.
Deprecated
. This is equivalent to maxon::String::FindFirst(ch, pos, start).
-
参数
-
[in]
|
ch
|
The character to find.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The starting position in the string for the search:
0
<=
start
< GetLength().
|
-
返回
-
true
if the character was found, otherwise
false
.
◆
FindLast()
[2/2]
Searches the string for the last match of character
ch
.
Deprecated
. This is equivalent to maxon::String::FindLast(ch, pos, start == -1 ?
maxon::StringEnd()
:
maxon::StringPosition
(start + 1)).
-
参数
-
[in]
|
ch
|
The character to find.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The position to start from when searching backwards:
0
<=
start
< GetLength() or
-1
for the end.
|
-
返回
-
true
if the character was found, otherwise
false
.
◆
FindFirstUpper()
Searches the string for the first match of the upper-case substring.
Deprecated
. This is equivalent to maxon::String::FindUpper(findupper, pos, start).
-
警告
-
findupper
has to be uppercase.
-
参数
-
[in]
|
findupper
|
The upper-case substring to search for.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The starting position in the string for the search:
0
<=
start
< GetLength().
|
-
返回
-
true
if the upper-case substring was found, otherwise
false
.
◆
FindLastUpper()
Searches the string for the last match of the upper-case substring.
Deprecated
. This is equivalent to maxon::String::FindLastUpper(findupper, pos, start == -1 ?
maxon::StringEnd()
:
maxon::StringPosition
(start + 1))
-
警告
-
findupper
has to be uppercase.
-
参数
-
[in]
|
findupper
|
The upper-case substring to search for.
|
[out]
|
pos
|
A pointer to an
Int32
to receive the found position in the string. The caller owns the pointed integer.
|
[in]
|
start
|
The position to start from when searching backwards:
0
<=
start
< GetLength() or
-1
for the end.
|
-
返回
-
true
if the upper-case substring was found, otherwise
false
.
◆
Delete()
void Delete
|
(
|
Int
|
pos
,
|
|
|
Int
|
count
|
|
)
|
|
|
Removes a section from the string.
Deprecated
. This is equivalent to maxon::String::Erase(pos, count).
-
参数
-
[in]
|
pos
|
The starting position to remove:
0
<=
pos
< GetLength().
|
[in]
|
count
|
The number of characters to remove:
0
<=
count
< GetLength()-
pos
.
|
◆
InsertDeprecated()
[1/2]
Inserts a character into the string.
Deprecated
. This is equivalent to maxon::String::Insert(pos, ch).
-
参数
-
[in]
|
pos
|
The position to insert the character:
0
<=
pos
< GetLength().
|
[in]
|
ch
|
The character to insert.
|
◆
InsertDeprecated()
[2/2]
void InsertDeprecated
|
(
|
Int
|
pos
,
|
|
|
const
String
&
|
cs
,
|
|
|
Int
|
start
=
-1
,
|
|
|
Int
|
end
=
-1
|
|
)
|
|
|
Inserts another string into the string.
Deprecated
. This is equivalent to maxon::String::Insert(pos, cs, start == -1 ? 0 : start, end == -1 ?
maxon::StringEnd()
:
maxon::StringPosition(end)
).
-
参数
-
[in]
|
pos
|
The position to insert the string:
0
<=
pos
< GetLength().
|
[in]
|
cs
|
The string to insert.
|
[in]
|
start
|
The start position within the inserted string to only insert parts of the string.
|
[in]
|
end
|
End position within the inserted string to only insert parts of the string.
|
◆
SubStr()
Extracts a substring from the string.
Deprecated
. This is equivalent to maxon::String::GetPart(a, b).
-
参数
-
[in]
|
start
|
The position to extract the substring from. Must be
0
<=
pos
< GetLength().
|
[in]
|
count
|
The number of characters of the substring:
0
<=
count
< GetLength()-
start
|
-
返回
-
The substring.
◆
Left()
Extracts a substring from the left of the string.
Deprecated
. This is equivalent to maxon::String::GetPart(-count,
maxon::StringEnd()
).
-
参数
-
[in]
|
count
|
The number of characters of the substring:
0
<=
count
< GetLength()
|
-
返回
-
The substring.
◆
Right()
Extracts a substring from the right of the string.
Deprecated
. This is equivalent to maxon::String::GetPart(-count,
maxon::StringEnd()
).
-
参数
-
[in]
|
count
|
The number of characters of the substring:
0
<=
count
< GetLength()
|
-
返回
-
The substring.
◆
ParseToFloat()
Float
ParseToFloat
|
(
|
Int32
*
|
error
=
nullptr
,
|
|
|
Int
|
unit
=
0
,
|
|
|
Int
|
angletype
=
0
,
|
|
|
Int
|
base
=
10
|
|
)
|
|
const
|
Converts the string into a
Float
值。
-
参数
-
[in]
|
error
|
A pointer to an
Int32
to report any errors of conversion. The caller owns the pointed variable.
The function succeeded if
error
==
0
.
|
[in]
|
unit
|
The unit type:
UNIT
|
[in]
|
angletype
|
The angle type:
ANGLE
|
[in]
|
base
|
The base of the number system used in the string.
|
-
返回
-
The
Float
value represented by the string.
◆
ParseToInt32()
Int32
ParseToInt32
|
(
|
Int32
*
|
error
=
nullptr
|
)
|
const
|
Converts the string into an
Int32
值。
Deprecated
. This is equivalent to maxon::String::ToInt32().
-
参数
-
[in]
|
error
|
A pointer to an
Int32
to report any errors of conversion. The caller owns the pointed variable.
The function succeeded if
error
==
0
.
|
-
返回
-
The
Int32
value represented by the string.
◆
MemoryToString()
Converts a
Int64
into a memory size formated (B,KB,MB) string.
Deprecated
. This is equivalent to maxon::String::MemorySizeToString(v, true).
-
参数
-
[in]
|
mem
|
The
Int64
memory value to convert.
|
-
返回
-
The
Int64
memory as a string.
◆
HexToString()
[1/2]
Converts a
UInt32
hexadecimal value into a string (usually used with pointers).
Deprecated
. This is equivalent to maxon::String::HexToString(v, prefix0x).
-
参数
-
[in]
|
v
|
The hexadecimal value to convert.
|
[in]
|
prefix0x
|
Set to
false
to disable
'0x'
prefix in the returned string.
|
-
返回
-
The hexadecimal value as a string.
◆
HexToString()
[2/2]
Converts a
UInt64
hexadecimal value into a string (usually used with pointers).
Deprecated
. This is equivalent to maxon::String::HexToString(v, prefix0x).
-
参数
-
[in]
|
v
|
The hexadecimal value to convert.
|
[in]
|
prefix0x
|
Set to
false
to disable
'0x'
prefix in the returned string.
|
-
返回
-
The hexadecimal value as a string.
◆
IntToString()
[1/2]
Converts an
Int32
到
String
.
Deprecated
. This is equivalent to maxon::String::IntToString(v).
-
参数
-
-
返回
-
String
object with the decimal text of the value. Will be an empty reference on failure (apply iferr for error handling).
◆
IntToString()
[2/2]
Converts an
Int64
到
String
.
Deprecated
. This is equivalent to maxon::String::IntToString(v).
-
参数
-
-
返回
-
String
object with the decimal text of the value. Will be an empty reference on failure (apply iferr for error handling).
◆
UIntToString()
[1/2]
Converts an
UInt32
到
String
.
Deprecated
. This is equivalent to maxon::String::UIntToString(v).
-
参数
-
-
返回
-
String
object with the decimal text of the value. Will be an empty reference on failure (apply iferr for error handling).
◆
UIntToString()
[2/2]
Converts an
UInt64
到
String
.
Deprecated
. This is equivalent to maxon::String::UIntToString(v).
-
参数
-
-
返回
-
String
object with the decimal text of the value. Will be an empty reference on failure (apply iferr for error handling).
◆
FloatToString()
[1/2]
Converts a
Float32
into a
String
.
Deprecated
. This is equivalent to maxon::String::FloatToString(v, ...).
-
参数
-
[in]
|
v
|
The
Float32
value to convert.
|
[in]
|
vvk
|
The number of digits in front of the comma.
|
[in]
|
nnk
|
The number of digits after the comma.
|
-
返回
-
The
Float32
as a string.
◆
FloatToString()
[2/2]
Converts a
Float64
into a
String
.
Deprecated
. This is equivalent to maxon::String::FloatToString(v, ...).
-
参数
-
[in]
|
v
|
The
Float64
value to convert.
|
[in]
|
vvk
|
The number of digits in front of the comma.
|
[in]
|
nnk
|
The number of digits after the comma.
|
-
返回
-
The
Float64
as a string.
◆
FloatToStringDeprecated()
[1/2]
Converts a
Float32
into a
String
.
Deprecated
. This is equivalent to maxon::String::FloatToString(v, ...).
-
参数
-
[in]
|
v
|
The
Float32
value to convert.
|
[in]
|
vvk
|
The number of digits in front of the comma. (-1)
|
[in]
|
nnk
|
The number of digits after the comma.
|
[in]
|
e
|
Set to
true
to use exponential writing.
|
[in]
|
xchar
|
The leading chars will be filled with this character. e.g. the value
100
with
vvk
==
5
will looks like this:
00100
.
|
-
返回
-
The
Float32
as a string.
◆
FloatToStringDeprecated()
[2/2]
Converts a
Float64
into a
String
.
Deprecated
. This is equivalent to maxon::String::FloatToString(v, ...).
-
参数
-
[in]
|
v
|
The
Float64
value to convert.
|
[in]
|
vvk
|
The number of digits in front of the comma (-1).
|
[in]
|
nnk
|
The number of digits after the comma.
|
[in]
|
e
|
Set to
true
to use exponential writing.
|
[in]
|
xchar
|
The leading chars will be filled with this character. e.g. the value
100
with
vvk
==
5
will looks like this:
00100
.
|
-
返回
-
The
Float64
as a string.
◆
VectorToString()
[1/2]
Converts a
Vector32
into a
String
.
-
参数
-
[in]
|
v
|
The
Vector32
value to convert.
|
[in]
|
nnk
|
The number of digits after the comma.
|
-
返回
-
The
Vector32
as a string.
◆
VectorToString()
[2/2]
Converts a
Vector64
into a
String
.
-
参数
-
[in]
|
v
|
The
Vector64
value to convert.
|
[in]
|
nnk
|
The number of digits after the comma.
|
-
返回
-
The
Vector64
as a string.
◆
ToInt32()
Converts the string to an
Int32
.
Deprecated
. This is equivalent to maxon::String::ToInt32().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as an
Int32
.
◆
ToInt64()
Converts the string to an
Int64
.
Deprecated
. This is equivalent to maxon::String::ToInt64().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as an
Int64
.
◆
ToUInt32()
Converts the string to a
UInt32
.
Deprecated
. This is equivalent to maxon::String::ToUInt32().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as a
UInt32
.
◆
ToUInt64()
Converts the string to a
UInt64
.
Deprecated
. This is equivalent to maxon::String::ToUInt64().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as a
UInt64
.
◆
ToFloat()
Converts the string to a
Float
.
Deprecated
. This is equivalent to maxon::String::ToFloat().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as a
Float
.
◆
ToInt()
Converts the string to an
Int
.
Deprecated
. This is equivalent to maxon::String::ToInt().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as an
Int
.
◆
ToUInt()
Converts the string to a
UInt
.
Deprecated
. This is equivalent to maxon::String::ToUInt().
-
参数
-
[out]
|
error
|
Assigned
true
if an error occurred, otherwise
false
.
|
-
返回
-
The string as a
UInt
.
◆
ToUpper()
Converts the characters of the string to uppercase.
Deprecated
. This is equivalent to maxon::String::ToUpper().
-
警告
-
This only works with ANSI characters less than character code
128
, all other characters remain unchanged.
-
返回
-
The converted uppercase string. Returns a copy of the string.
◆
ToLower()
Converts the characters of the string to lowercase.
Deprecated
. This is equivalent to maxon::String::ToLower().
-
警告
-
This only works with ANSI characters less than character code
128
, all other characters remain unchanged.
-
返回
-
The converted lowercase string. Returns a copy of the string.
◆
GetCStringLen()
Gets the expected length of the string after encoding.
Deprecated
. Use maxon::String::GetCString/GetCStringAppendArray()
-
参数
-
[in]
|
type
|
The type of string encoding.
|
-
返回
-
The length of the encoded string.
◆
GetCString()
Gets the string after encoding. This routine can be used to convert
Cinema 4D
Unicode strings into standard
C
strings.
Deprecated
. Use maxon::String::GetCStringBlock()
-
参数
-
[out]
|
scstr
|
The buffer for the encoded string. The size of the buffer must be at least
max
. The caller owns the pointed buffer.. It is guaranteed that the character sequence will be '\0'-terminated.
|
[in]
|
max
|
The maximum number of characters for the buffer
scstr
. Should be
GetCStringLen()
+
1
, otherwise the string will be truncated.
|
[in]
|
type
|
The type of string encoding.
|
-
返回
-
The length of the encoded string.
◆
GetCStringCopy()
Gets the encoded string as a copy. This routine can be used to convert
Cinema 4D
Unicode strings into standard
C
strings. Other than
GetCString()
no length precalculation needs to be done.
Deprecated
. Use maxon::String::GetCString()
-
参数
-
[in]
|
type
|
The type of string encoding.
|
-
返回
-
The
C
string copy of the string. The caller owns the pointed string.
-
警告
-
The returned character buffer has to be freed after usage with
DeleteMem()
.
◆
SetCString()
Sets a string. This routine will convert a standard
C
string using the given decoding into a
Cinema 4D
UTF-32 Unicode string.
Deprecated
. Use maxon::String::SetCString()
-
参数
-
[in]
|
cstr
|
The buffer containing the encoded string. The caller owns the pointed buffer.
|
[in]
|
count
|
The number of characters in the encoded string. If
-1
is passed all characters will be copied until
'\0'
is found.
Note that the resulting string may have a different length than what you specify here it is transformed into a UTF-32 encoding.
|
[in]
|
type
|
The type of string encoding.
|
Friends And Related Function Documentation
◆
operator+
[1/3]
Concatenates the strings and returns the resulting string.
-
参数
-
[in]
|
str1
|
The left-hand operand string.
|
[in]
|
str2
|
The right-hand operand string.
|
-
返回
-
The concatenated string.
◆
operator+
[2/3]
◆
operator+
[3/3]