⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misc.i

📁 H.264完整的C语言代码和DCT的代码
💻 I
📖 第 1 页 / 共 5 页
字号:
virtual streampos seekoff(streamoff, ios::seek_dir, int);
virtual int     sync();         

protected:
virtual int     doallocate();
private:
        int     x_dynamic;
        int     x_bufmin;
        int     _fAlloc;
        int     x_static;
        void * (* x_alloc)(long);
        void    (* x_free)(void *);
};

class  istrstream : public istream {
public:
                istrstream(char *);
                istrstream(char *, int);
                ~istrstream();

inline  strstreambuf* rdbuf() const { return (strstreambuf*) ios::rdbuf(); }
inline  char * str() { return rdbuf()->str(); }
};

class  ostrstream : public ostream {
public:
                ostrstream();
                ostrstream(char *, int, int = ios::out);
                ~ostrstream();

inline  int     pcount() const { return rdbuf()->out_waiting(); }
inline  strstreambuf* rdbuf() const { return (strstreambuf*) ios::rdbuf(); }
inline  char *  str() { return rdbuf()->str(); }
};

class  strstream : public iostream {    
public:
                strstream();
                strstream(char *, int, int);
                ~strstream();

inline  int     pcount() const { return rdbuf()->out_waiting(); } 
inline  strstreambuf* rdbuf() const { return (strstreambuf*) ostream::rdbuf(); }
inline  char * str() { return rdbuf()->str(); }
};



#pragma pack(pop)
#line 122 "D:/Progra~1/Micros~2/VC98/Include\\strstrea.h"

#line 124 "D:/Progra~1/Micros~2/VC98/Include\\strstrea.h"

#line 126 "D:/Progra~1/Micros~2/VC98/Include\\strstrea.h"
#line 22 "D:/working/tools/isim/string.hpp"


#line 25 "D:/working/tools/isim/string.hpp"
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\string.h"















#pragma once
#line 18 "D:/Progra~1/Micros~2/VC98/Include\\string.h"






#line 25 "D:/Progra~1/Micros~2/VC98/Include\\string.h"



extern "C" {
#line 30 "D:/Progra~1/Micros~2/VC98/Include\\string.h"

















#line 48 "D:/Progra~1/Micros~2/VC98/Include\\string.h"























#line 72 "D:/Progra~1/Micros~2/VC98/Include\\string.h"




#line 77 "D:/Progra~1/Micros~2/VC98/Include\\string.h"
























        void *  __cdecl memcpy(void *, const void *, size_t);
        int     __cdecl memcmp(const void *, const void *, size_t);
        void *  __cdecl memset(void *, int, size_t);
        char *  __cdecl _strset(char *, int);
        char *  __cdecl strcpy(char *, const char *);
        char *  __cdecl strcat(char *, const char *);
        int     __cdecl strcmp(const char *, const char *);
        size_t  __cdecl strlen(const char *);
#line 110 "D:/Progra~1/Micros~2/VC98/Include\\string.h"
 void *  __cdecl _memccpy(void *, const void *, int, unsigned int);
 void *  __cdecl memchr(const void *, int, size_t);
 int     __cdecl _memicmp(const void *, const void *, unsigned int);





 void *  __cdecl memmove(void *, const void *, size_t);
#line 120 "D:/Progra~1/Micros~2/VC98/Include\\string.h"


 char *  __cdecl strchr(const char *, int);
 int     __cdecl _strcmpi(const char *, const char *);
 int     __cdecl _stricmp(const char *, const char *);
 int     __cdecl strcoll(const char *, const char *);
 int     __cdecl _stricoll(const char *, const char *);
 int     __cdecl _strncoll(const char *, const char *, size_t);
 int     __cdecl _strnicoll(const char *, const char *, size_t);
 size_t  __cdecl strcspn(const char *, const char *);
 char *  __cdecl _strdup(const char *);
 char *  __cdecl _strerror(const char *);
 char *  __cdecl strerror(int);
 char *  __cdecl _strlwr(char *);
 char *  __cdecl strncat(char *, const char *, size_t);
 int     __cdecl strncmp(const char *, const char *, size_t);
 int     __cdecl _strnicmp(const char *, const char *, size_t);
 char *  __cdecl strncpy(char *, const char *, size_t);
 char *  __cdecl _strnset(char *, int, size_t);
 char *  __cdecl strpbrk(const char *, const char *);
 char *  __cdecl strrchr(const char *, int);
 char *  __cdecl _strrev(char *);
 size_t  __cdecl strspn(const char *, const char *);
 char *  __cdecl strstr(const char *, const char *);
 char *  __cdecl strtok(char *, const char *);
 char *  __cdecl _strupr(char *);
 size_t  __cdecl strxfrm (char *, const char *, size_t);














 void * __cdecl memccpy(void *, const void *, int, unsigned int);
 int __cdecl memicmp(const void *, const void *, unsigned int);
 int __cdecl strcmpi(const char *, const char *);
 int __cdecl stricmp(const char *, const char *);
 char * __cdecl strdup(const char *);
 char * __cdecl strlwr(char *);
 int __cdecl strnicmp(const char *, const char *, size_t);
 char * __cdecl strnset(char *, int, size_t);
 char * __cdecl strrev(char *);
        char * __cdecl strset(char *, int);
 char * __cdecl strupr(char *);

#line 174 "D:/Progra~1/Micros~2/VC98/Include\\string.h"







 wchar_t * __cdecl wcscat(wchar_t *, const wchar_t *);
 wchar_t * __cdecl wcschr(const wchar_t *, wchar_t);
 int __cdecl wcscmp(const wchar_t *, const wchar_t *);
 wchar_t * __cdecl wcscpy(wchar_t *, const wchar_t *);
 size_t __cdecl wcscspn(const wchar_t *, const wchar_t *);
 size_t __cdecl wcslen(const wchar_t *);
 wchar_t * __cdecl wcsncat(wchar_t *, const wchar_t *, size_t);
 int __cdecl wcsncmp(const wchar_t *, const wchar_t *, size_t);
 wchar_t * __cdecl wcsncpy(wchar_t *, const wchar_t *, size_t);
 wchar_t * __cdecl wcspbrk(const wchar_t *, const wchar_t *);
 wchar_t * __cdecl wcsrchr(const wchar_t *, wchar_t);
 size_t __cdecl wcsspn(const wchar_t *, const wchar_t *);
 wchar_t * __cdecl wcsstr(const wchar_t *, const wchar_t *);
 wchar_t * __cdecl wcstok(wchar_t *, const wchar_t *);

 wchar_t * __cdecl _wcsdup(const wchar_t *);
 int __cdecl _wcsicmp(const wchar_t *, const wchar_t *);
 int __cdecl _wcsnicmp(const wchar_t *, const wchar_t *, size_t);
 wchar_t * __cdecl _wcsnset(wchar_t *, wchar_t, size_t);
 wchar_t * __cdecl _wcsrev(wchar_t *);
 wchar_t * __cdecl _wcsset(wchar_t *, wchar_t);

 wchar_t * __cdecl _wcslwr(wchar_t *);
 wchar_t * __cdecl _wcsupr(wchar_t *);
 size_t __cdecl wcsxfrm(wchar_t *, const wchar_t *, size_t);
 int __cdecl wcscoll(const wchar_t *, const wchar_t *);
 int __cdecl _wcsicoll(const wchar_t *, const wchar_t *);
 int __cdecl _wcsncoll(const wchar_t *, const wchar_t *, size_t);
 int __cdecl _wcsnicoll(const wchar_t *, const wchar_t *, size_t);







 wchar_t * __cdecl wcsdup(const wchar_t *);
 int __cdecl wcsicmp(const wchar_t *, const wchar_t *);
 int __cdecl wcsnicmp(const wchar_t *, const wchar_t *, size_t);
 wchar_t * __cdecl wcsnset(wchar_t *, wchar_t, size_t);
 wchar_t * __cdecl wcsrev(wchar_t *);
 wchar_t * __cdecl wcsset(wchar_t *, wchar_t);
 wchar_t * __cdecl wcslwr(wchar_t *);
 wchar_t * __cdecl wcsupr(wchar_t *);
 int __cdecl wcsicoll(const wchar_t *, const wchar_t *);

#line 228 "D:/Progra~1/Micros~2/VC98/Include\\string.h"


#line 231 "D:/Progra~1/Micros~2/VC98/Include\\string.h"

#line 233 "D:/Progra~1/Micros~2/VC98/Include\\string.h"


}
#line 237 "D:/Progra~1/Micros~2/VC98/Include\\string.h"

#line 239 "D:/Progra~1/Micros~2/VC98/Include\\string.h"
#line 26 "D:/working/tools/isim/string.hpp"

#line 1 "D:/working/tools/isim/libapi.hpp"




































#line 38 "D:/working/tools/isim/libapi.hpp"







#line 46 "D:/working/tools/isim/libapi.hpp"















#line 62 "D:/working/tools/isim/libapi.hpp"







#line 70 "D:/working/tools/isim/libapi.hpp"

#line 72 "D:/working/tools/isim/libapi.hpp"
#line 28 "D:/working/tools/isim/string.hpp"

class __declspec(dllexport) String {
  struct srep {
    char *str;     
    int n;         
    srep() { str=0; n=1; }
  };
  srep *p;

  int ok(char *proc, int lineno) const;

 public:
  
  String();

  
  String(const int i, const int base = 10);
  String(const unsigned int i, const int base = 10);
  String(const long i, const int base = 10);
  String(const unsigned long i, const int base = 10);

  
  String(const char c);

  
  String(const char *cs);

  
  String(const String& s);

  ~String();

  
  
  String substring(unsigned int lo, unsigned int hi) const;

  String& operator=(const char *cs);
  String& operator=(const String& s);

  int length() const;

  char& operator[](unsigned i);
  const char& operator[](unsigned i) const;

  String operator+(const char *cs);
  String operator+(const String &s);

  char *char_ptr() const;
  static void delete_char_ptr(char *cs);

  
  void uppercase();
  void lowercase();

  
  int asint() const;

  
  void deleteMyTrailingWhiteSpace();
  void deleteMyLeadingWhiteSpace();

  friend __declspec(dllexport) ostream& operator<<(ostream& os, const String& s);
  friend __declspec(dllexport) istream& operator>>(istream& is, String& s);

  bool operator==(const String& s2) const { 
    return !strcmp(p->str, s2.p->str); 
  }
  bool operator==(const char *s2) const { 
    return !strcmp(p->str, s2); 
  }

  bool operator!=(const String& s2) const {
    return (strcmp(p->str, s2.p->str) != 0);
  }
  bool operator!=(const char *s2) const { 
    return (strcmp(p->str, s2) != 0);
  }

  bool operator<(const String& s2) const { 
    return strcmp(p->str, s2.p->str) < 0; 
  }
  bool operator<(const char *s2) const { 
    return strcmp(p->str, s2) < 0; 
  }
  void streamIO(istream* i, ostream* o, unsigned int indent, 
    bool includeLength = true);
};

#line 117 "D:/working/tools/isim/string.hpp"

#line 11 "D:/working/tools/isim/misc.hpp"
#line 1 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"















#pragma once
#line 18 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"








#line 27 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"





#pragma pack(push,8)

#line 1 "D:/Progra~1/Micros~2/VC98/Include\\useoldio.h"











































#line 35 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"

#line 37 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"
















#pragma warning(disable:4514) 

#line 56 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"

typedef int filedesc;

class  filebuf : public streambuf {
public:
static  const int       openprot;       


static  const int       sh_none;        
static  const int       sh_read;        
static  const int       sh_write;       



static  const int       binary;
static  const int       text;

                        filebuf();
                        filebuf(filedesc);
                        filebuf(filedesc, char *, int);
                        ~filebuf();

        filebuf*        attach(filedesc);
        filedesc        fd() const { return (x_fd==-1) ? (-1) : x_fd; }
        int             is_open() const { return (x_fd!=-1); }
        filebuf*        open(const char *, int, int = filebuf::openprot);
        filebuf*        close();
        int             setmode(int = filebuf::text);

virtual int             overflow(int=(-1));
virtual int             underflow();

virtual streambuf*      setbuf(char *, int);
virtual streampos       seekoff(streamoff, ios::seek_dir, int);

virtual int             sync();

private:
        filedesc        x_fd;
        int             x_fOpened;
};

class  ifstream : public istream {
public:
        ifstream();
        ifstream(const char *, int =ios::in, int = filebuf::openprot);
        ifstream(filedesc);
        ifstream(filedesc, char *, int);
        ~ifstream();

        streambuf * setbuf(char *, int);
        filebuf* rdbuf() const { return (filebuf*) ios::rdbuf(); }

        void attach(filedesc);
        filedesc fd() const { return rdbuf()->fd(); }

        int is_open() const { return rdbuf()->is_open(); }
        void open(const char *, int =ios::in, int = filebuf::openprot);
        void close();
        int setmode(int mode = filebuf::text) { return rdbuf()->setmode(mode); }
};

class  ofstream : public ostream {
public:
        ofstream();
        ofstream(const char *, int =ios::out, int = filebuf::openprot);
        ofstream(filedesc);
        ofstream(filedesc, char *, int);
        ~ofstream();

        streambuf * setbuf(char *, int);
        filebuf* rdbuf() const { return (filebuf*) ios::rdbuf(); }

        void attach(filedesc);
        filedesc fd() const { return rdbuf()->fd(); }

        int is_open() const { return rdbuf()->is_open(); }
        void open(const char *, int =ios::out, int = filebuf::openprot);
        void close();
        int setmode(int mode = filebuf::text) { return rdbuf()->setmode(mode); }
};
        
class  fstream : public iostream {
public:
        fstream();
        fstream(const char *, int, int = filebuf::openprot);
        fstream(filedesc);
        fstream(filedesc, char *, int);
        ~fstream();

        streambuf * setbuf(char *, int);
        filebuf* rdbuf() const { return (filebuf*) ostream::rdbuf(); }

        void attach(filedesc);
        filedesc fd() const { return rdbuf()->fd(); }

        int is_open() const { return rdbuf()->is_open(); }
        void open(const char *, int, int = filebuf::openprot);
        void close();
        int setmode(int mode = filebuf::text) { return rdbuf()->setmode(mode); }
};
        

inline  ios& binary(ios& _fstrm) \

   { ((filebuf*)_fstrm.rdbuf())->setmode(filebuf::binary); return _fstrm; }
inline  ios& text(ios& _fstrm) \

   { ((filebuf*)_fstrm.rdbuf())->setmode(filebuf::text); return _fstrm; }


#pragma pack(pop)
#line 167 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"

#line 169 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"

#line 171 "D:/Progra~1/Micros~2/VC98/Include\\fstream.h"
#line 12 "D:/working/tools/isim/misc.hpp"









#line 22 "D:/working/tools/isim/misc.hpp"













typedef unsigned int             uint;
typedef unsigned __int32         uint32;

#line 1 "D:/working/tools/isim/vector.hpp"




















#line 1 "D:/working/tools/isim/error.hpp"




















#line 1 "D:/working/tools/isim/string.hpp"

































































⌨️ 快捷键说明

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