📄 wy__num_int.cpp
字号:
/* Copyright is licensed under GNU LGPL. by I.J.Wang 2004*/#define WYLIB_SOURCE#include "wy__num.h"#include "wy__scanum.h"namespace Wy {//// Note: _strnum for float types are defined in wymath.cpp///*WyRet _strnum(char& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed char& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed short& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed int& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed long& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed long long& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned char& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned short& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned int& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned long& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned long long& res, const char** endptr, const char* buf, size_t blen, const int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };*/WyRet _strnum(signed int& res, const char** endptr, WyCSeg cseg, const int& radix){ return wy__reset_num(res,endptr,cseg.begin(),cseg.size(),radix); };WyRet _strnum(unsigned int& res, const char** endptr, WyCSeg cseg, const int& radix){ return wy__reset_num(res,endptr,cseg.begin(),cseg.size(),radix); };//--------------/*WyRet _strnum(char& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed char& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed short& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed int& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed long& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(signed long long& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned char& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned short& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned int& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned long& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };WyRet _strnum(unsigned long long& res, const char** endptr, const char* buf, size_t blen, int& radix){ return wy__reset_num(res,endptr,buf,blen,radix); };*/WyRet _strnum(signed int& res, const char** endptr, WyCSeg cseg, int& radix){ return wy__reset_num(res,endptr,cseg.begin(),cseg.size(),radix); };WyRet _strnum(unsigned int& res, const char** endptr, WyCSeg cseg, int& radix){ return wy__reset_num(res,endptr,cseg.begin(),cseg.size(),radix); };WyRet wy_strnum2(signed int& res1, signed int& res2, int& fdig, const char** endptr, const char* buf,size_t blen){ return wy__strnum2(res1,res2,fdig,endptr,buf,blen); };WyRet wy_strnum3(signed int& res1, signed int& res2, int& fdig, int& res3, const char** endptr, const char* buf,size_t blen){ return wy__strnum3(res1,res2,fdig,res3,endptr,buf,blen); };//-----------------------WyRet _scanum(signed int& n, size_t& idx, const WyCSeg& text, const int& radix){ return wy__scanum(n,idx,text,radix); };WyRet _scanum(unsigned int& n, size_t& idx, const WyCSeg& text, const int& radix){ return wy__scanum(n,idx,text,radix); };//----WyRet _scanum(signed int& n, size_t& idx, const WyCSeg& text){ return wy__scanum(n,idx,text,0); };WyRet _scanum(unsigned int& n, size_t& idx, const WyCSeg& text){ return wy__scanum(n,idx,text,0); };}; // End of Wy
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -