mystring.h

来自「Decompilation Dos Program is a technique」· C头文件 代码 · 共 44 行

H
44
字号
/*---------------------------------------------------------------------------*/
// DisC Decompilation Wizard
// written by
// Satish Kumar S
// satish@miel.mot.com
//
// Copyright 1999-2001 Satish Kumar S
//
// Permission is granted to use this software for research purposes as
// long as this notice stays attached to this software.
/*---------------------------------------------------------------------------*/
#ifndef _STRING_H
#define _STRING_H
#include <string.h>
#include <stdlib.h>
#include "Global.h"

#define MAXSTRLEN 256

class String
{
  char Data[MAXSTRLEN];
public:
  String();
  String(Word i);
  String(Byte i);
  String(int i);
  void operator = (Byte i);
  void operator = (Word i);
  void operator = (int i);
  String &Copy(const char *t);
  int IsSubStrPresent(const String &t,int Pos);
  int IsEmpty();
  void  operator += (const String &s);
  void  operator  = (const String &s);
  void  operator += (const char *t);
  void  operator  = (const char *t);
  operator char * ();
  String &operator + (const char *t);
  String &operator + (const String &t);
  int ValueFromHex();
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?