-
大小: 29.66MB文件类型: .gz金币: 1下载: 0 次发布日期: 2023-07-16
- 语言: 其他
- 标签: Node.js SourceCode v8.9.1 doc_api index.html
资源简介
node-v8.9.1.tar.gz
node.js v8.9.1 源码 API文档
包含:src,doc,lib,test, tools等文件夹
MD5:7482b2523f72000d1b6060c38945026b
大小: 29.6 MB
代码片段和文件信息
// © 2016 and later: Unicode Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
*******************************************************************************
* Copyright (C) 2011-2012 International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* file name: appendable.cpp
* encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
* created on: 2010dec07
* created by: Markus W. Scherer
*/
#include “unicode/utypes.h“
#include “unicode/appendable.h“
#include “unicode/utf16.h“
U_NAMESPACE_BEGIN
Appendable::~Appendable() {}
UBool
Appendable::appendCodePoint(UChar32 c) {
if(c<=0xffff) {
return appendCodeUnit((UChar)c);
} else {
return appendCodeUnit(U16_LEAD(c)) && appendCodeUnit(U16_TRAIL(c));
}
}
UBool
Appendable::appendString(const UChar *s int32_t length) {
if(length<0) {
UChar c;
while((c=*s++)!=0) {
if(!appendCodeUnit(c)) {
return FALSE;
}
}
} else if(length>0) {
const UChar *limit=s+length;
do {
if(!appendCodeUnit(*s++)) {
return FALSE;
}
} while(s }
return TRUE;
}
UBool
Appendable::reserveAppendCapacity(int32_t /*appendCapacity*/) {
return TRUE;
}
UChar *
Appendable::getAppendBuffer(int32_t minCapacity
int32_t /*desiredCapacityHint*/
UChar *scratch int32_t scratchCapacity
int32_t *resultCapacity) {
if(minCapacity<1 || scratchCapacity *resultCapacity=0;
return NULL;
}
*resultCapacity=scratchCapacity;
return scratch;
}
// UnicodeStringAppendable is implemented in unistr.cpp.
U_NAMESPACE_END
相关资源
- 图灵书籍(Node.js开发指南.pdf+Node We
- nodejs实战pdf 源码.zip
- 新时期的Node.js入门
- Node.js高级编程 PDF电子书 带书签目录
- Node.js v6.7.0 x64
- 深入浅出Node.js完整版
- Node.js实战PDF高清版
- Node.js MongoDB AngularJSWeb开发.part3
- Node.js实战 第2季.完整版.pdf
- 深入浅出Node.js.pdf
- 《Node.js实战》[CN文字版+完整源码]
- node+vue模仿淘票票的app源码分享
- Node.js高级编程中文完整版.zip
- 《Koa与Node.js开发实战》_iKcamp.pdf
- Node.js 实战 中文第2版 高清
- QGIS源码已通过编译测试,需要的朋友
- Node.js MongoDB AngularJSWeb开发.part2
- Node.js书本汇总.zip
- Node.js开发实战详解.pdf 完整版,带目
- Koa与Node.js开发实战完整版
- Node.js-阿里云短信发送接口nodejs版本
- Node.js-支付宝当面付nodejsapisdk
- Node.js Webservice
- Unity4.3Sourcecode
- node.js实现简单登录和注册
- node.js之express的token验证
- vue2.0node.jsMongoDB全栈打造商城完整版
- GameSourceCode.txt
- Node.js 从零开发 web server博客项目 前端
- :实现最新版本Node.js中Express+mongodb的
评论
共有 条评论