| MATLAB Compiler | ![]() |
mwString(const mwString& str)
Copy constructor for mwString. Constructs a new string and initializes its data with the supplied mwString.
C++ syntax
#include "mclcppclass.h" mwString str("This is a string"); mwString new_str(str); // new_str contains a copy of the // characters in str.
Arguments
Return value
Description
Use this constructor to create an mwString that is a copy of an existing one.
| mwString(const char* str) | int Length() const | ![]() |
© 1994-2005 The MathWorks, Inc.