| MATLAB Compiler | ![]() |
int Length() const
Return number of characters in string.
C++ syntax
#include "mclcppclass.h" mwString str("This is a string"); int len = str.Length(); // len should be 16.
Arguments
Return value
The number of characters in the string.
Description
Use this method to get the length of an mwString. The value returned does not include the terminating NULL character.
| mwString(const mwString& str) | operator const char* () const | ![]() |
© 1994-2005 The MathWorks, Inc.