#include <string.h>
#include <stdlib.h>
#include "magic/mtypes.h"
#include "magic/mobject.h"
#include "magic/mmagisupp.h"
#include "magic/mi18n.h"
Go to the source code of this file.
Namespaces | |
namespace | MagiC |
Compounds | |
class | String |
Generic string and buffer class. More... | |
class | SubString |
Defines | |
#define | STRING_GETCHAR(n) return mData[n]; |
#define | STRFORMAT_SMALL_BUFFER_SIZE 80 |
Functions | |
BEGIN_NAMESPACE (MagiC) | |
bool | isempty (const String &str) |
char * | safedup (const char *orig, int maxlen=-1) |
Definition in file mstring.h.
|
Length of the default initial buffer used in strformat and vstrformat.
|
|
Causes the String class NOT to check bounds anywhere. Checking makes world very safe, recommended. Can be a heavy bottleneck in some cases. |
|
This file is part of the MagiC++ library. * * Copyright (C) 1998-2004 Marko Grönroos <magi@iki.fi> * * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *
|
|
Definition at line 221 of file mstring.h. References String::isEmpty(). |
|
Duplicates a null-terminated C-style string. Safer version of strdup - checks if the string is NULL. Also, uses new to allocate the string.
Definition at line 1221 of file mstring.cc. |