V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  fengjianxinghun  ›  全部回复第 56 页 / 共 65 页
回复总数  1300
1 ... 48  49  50  51  52  53  54  55  56  57 ... 65  
2017-02-06 09:20:41 +08:00
回复了 orderc 创建的主题 职场话题 HR 这是逼我离职吗
HR 暗恋你?
2017-02-05 18:31:59 +08:00
回复了 wohenyingyu02 创建的主题 Python visual studio 2017 更新之后 Python 模块消失?
要习惯微软的放弃
2017-01-22 09:49:50 +08:00
回复了 upoker 创建的主题 云计算 有人购买过阿里云美国区服务器吗?主要服务欧美用户
都欧美了还阿里?真爱?
2017-01-18 17:56:39 +08:00
回复了 BiliBiliVCloud 创建的主题 酷工作 BiliBili 视频云团队招聘(坐标上海)
去 B 站还要啥工资?
2017-01-13 16:20:02 +08:00
回复了 monburan 创建的主题 Ubuntu 求问,有没有什么 Ubuntu 上用的 UI 设计工具啊?
位图 gimp
矢量 inkscape
3d blender

什么平台都用这 3
openresty
2017-01-03 11:19:49 +08:00
回复了 fyyz 创建的主题 C C++有没有什么方法能方便地逐字索引 UTF-8 字符串
2017-01-03 11:18:08 +08:00
回复了 fyyz 创建的主题 C C++有没有什么方法能方便地逐字索引 UTF-8 字符串
static inline bool u8_is_ascii(char c)
{
return !(c & (1 << 7));
}

static inline bool u8_is_noascii_char(char c)
{
return !((c >> 6 & 0x3) ^ 0x2);
}

static inline int u8_is_noascii_head(char c)
{
if (!((c >> 5 & 0x7) ^ 0x6)) return 2;
if (!((c >> 4 & 0xF) ^ 0xE)) return 3;
if (!((c >> 3 & 0x1F) ^ 0x1E)) return 4;
return 0;
}

static inline size_t u8_len(const std::string& str)
{
int _index = 0;
for (int i = 0; i < str.size();) {
char c = str.at(i);
int size = u8_is_noascii_head(c);
if (size > 0) {
i += size;
} else if (u8_is_ascii(c)) {
++i;
} else {
return -1;
}

++_index;
}

return _index;
}


static inline std::string u8_at(const std::string& str, int index)
{
std::string t;
int _index = 0;
for (int i = 0; i < str.size();) {
char c = str.at(i);
int size = u8_is_noascii_head(c);
if (size > 0) {
if (_index == index) {
t.assign(str.begin() + i, str.begin() + i + size);
goto quit;
} else {
i += size;
++_index;
}
continue;
} else if (u8_is_ascii(c)) {
if (_index == index) {
t = std::string(1, c);
goto quit;
} else {
++_index;
}
} else {
goto quit;
}
++i;
}

overflow:
console::error("buffer overflow");
exit(-1);

quit:
return t;
}


static inline std::vector<std::string> u8_each_split(const std::string& str)
{
std::vector<std::string> re;
std::string t;
for (int i = 0; i < str.size();) {
char c = str.at(i);
int size = u8_is_noascii_head(c);
if (size > 0) {
t.clear();
t.assign(str.begin() + i, str.begin() + i + size);
i += size;
re.push_back(t);
continue;
} else if (u8_is_ascii(c)) {
re.push_back(std::string(1, c));
} else {
goto quit;
}
++i;
}
quit:
return re;
}
2016-12-29 22:21:58 +08:00
回复了 lisonfan 创建的主题 iOS OCS ——史上最疯狂的 iOS 动态化方案
nb ,又一个
2016-12-29 07:38:44 +08:00
回复了 raisor 创建的主题 职场话题 拉勾上面的公司是不是比较高大上?
拉钩界面还行
2016-12-28 09:39:04 +08:00
回复了 powtop 创建的主题 职场话题 感觉不裸辞不能愉快的找工作!
@imbahom 你会变得弱势
2016-12-27 22:38:53 +08:00
回复了 zhouqian 创建的主题 职场话题 我在公司呆了三年,经历了 7 任总监
还是用 append 吧……要不太碎了…
2016-12-26 10:22:20 +08:00
回复了 ansheng 创建的主题 武汉 武汉程序员需求量如何?
武汉 python ?绿盟科技武汉分研发啊。
绿盟估计是整个武汉最大的 python 用户了。有兴趣找我私聊内推。
nice !干得不错
2016-12-20 12:18:23 +08:00
回复了 pljhonglu 创建的主题 iOS 各位开发者如何看待滴滴的 DynamicCocoa 方案
看起来很 nb ,跨平台真正解决之道
能啊,可以当产品经理管理码农
2016-12-13 13:42:24 +08:00
回复了 yangzzu 创建的主题 职场话题 钱和正义选哪个?
师爷:原来你是想站着挣钱啊。那还是回山里吧。
1 ... 48  49  50  51  52  53  54  55  56  57 ... 65  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   997 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 46ms · UTC 21:51 · PVG 05:51 · LAX 14:51 · JFK 17:51
Developed with CodeLauncher
♥ Do have faith in what you're doing.