您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ stringp函数代码示例

51自学网 2021-06-03 08:30:52
  C++
这篇教程C++ stringp函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中stringp函数的典型用法代码示例。如果您正苦于以下问题:C++ stringp函数的具体用法?C++ stringp怎么用?C++ stringp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了stringp函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: page

varargs int page(string data, string title, function callback, int no_ansi){    if(!stringp(data)) return 0;    if(stringp(title)) write("*===| Paging: " + title + " |===*/n/n");    if(functionp(callback)) cb = callback;    if(no_ansi) ansi = 0;    currentLine = 0;    if(!this_player()->query_env("morelines"))	myLinesPerCycle = DEF_LINESPERCYCLE;    else	myLinesPerCycle = to_int(this_player()->query_env("morelines"));    linesPerCycle = myLinesPerCycle - 1;    exploded = explode(data, "/n");    totalLines = sizeof(exploded);    page_more();}
开发者ID:abzde,项目名称:dock9,代码行数:19,


示例2: or

/*    Description:      Prove knowledge of some secret.    Parameters:         ( mixed secret, closure cl, mixed extra )      or ( mixed secret, object ob,  string func, mixed extra )      secret - something you want to prove knowledge of      cl     - a closure      ob     - an object in which to call func      func   - a function to call in ob      extra  - an extra parameter to pass      Depending on which form is used, one of these will be done:            ob->func( hash, extra )        or  funcall( hash, extra )      where hash is the hash value of the secret: hash( secret )    Returns:      The return value of the call/eval.    Notes:      None.*/varargs mixedprove( mixed val, mixed ob_or_cl, mixed func_or_extra, mixed extra ){  if( closurep( ob_or_cl ) )    return funcall( (closure) ob_or_cl, hash( val ), func_or_extra );  if( !objectp( ob_or_cl ) || !stringp( func_or_extra ))    return 0;  return call_other( (object) ob_or_cl, (string) func_or_extra,                      hash( val ), extra );}
开发者ID:carriercomm,项目名称:eotl-mudlib,代码行数:33,


示例3: _stop_listen

static void_stop_listen(string channel, object ob){    if(!channel || !stringp(channel))	return;    if(channels[channel])	m_delkey(channels[channel], ob);    if (listeners[ob])	listeners[ob] -= ({channel});
开发者ID:Shea690901,项目名称:cdlib,代码行数:10,


示例4: setup

void setup(){	string loc;	if( stringp(loc = query("location")) )		move(loc);	set("no_get", 1);	seteuid(getuid());	restore();}
开发者ID:cosin,项目名称:XYJ,代码行数:10,


示例5: can_climb_obj

mixed can_climb_obj() {     if( this_player()->GetParalyzed() ) {        return "You cannot do anything!";    }    if(this_player()->GetPosition() != POSITION_STANDING ) {        return "You must be standing in order to climb.";    }    if(!stringp(hobbled(this_player()))) return "Your injuries prevent that movement.";    return this_player()->CanManipulate();}
开发者ID:arylwen,项目名称:terebi,代码行数:10,


示例6: name

// 任务的名字varargs string name(){        if (stringp(quest_name))                return quest_name;        if (functionp(quest_name))                return evaluate(quest_name);        return "未名任务";}
开发者ID:mudchina,项目名称:nitan3,代码行数:11,


示例7: sort_array

varargs nomask mixedsort_array(mixed arr, mixed lfunc, object obj){    if (stringp(lfunc)) {	if (!obj)	    obj = previous_object();	lfunc = mkfunction(lfunc, obj);    }    return sort(arr, lfunc);}
开发者ID:DruSatori,项目名称:AEMud,代码行数:10,


示例8: _tarn_turn_on

void _tarn_turn_on(object pl,string txt,int gen){  if (!objectp(pl)||!interactive(pl)) return WEG();  if (!stringp(txt)||txt=="") return WEG();  if (gen<0||gen>2) return WEG();  player=pl;  desc=capitalize(txt);  gender=gen;  shadow(pl,1);}
开发者ID:Kebap,项目名称:mg-mudlib,代码行数:10,


示例9: relative_name

string relative_name(mixed ob) {    string * path;    if (objectp(ob)) 	path = explode(file_name(ob),"/");    else if (stringp(ob)) 	path = explode(ob,"/");    else 	error("Object or array expected./n");     return path[sizeof(path)-1];}
开发者ID:gllort,项目名称:mud,代码行数:10,


示例10: query_look

string query_look() {   if( stringp(query_message()) )// Gpfault:  Reading is supposed to cost readiness// don't let players get the text for free by looking//      return ::query_look() + "/n/n" + "~CTITThe sign reads~CDEF:/n/n" + query_message();      return "It's a simple sign post, made of a flat piece of wood bound by leather strips to a post. It has been painted ~CWRNRED~CDEF./n/nOwned by $(OWNER)." + "/n/nThe sign has writing on it.  Try ~CCOMread~CDEFing it.";   else      return "It's a simple sign post, made of a flat piece of wood bound by leather strips to a post. It has been painted ~CWRNRED~CDEF./n/nOwned by $(OWNER)." + "/n/nThe sign is blank.";}
开发者ID:shentino,项目名称:simud,代码行数:10,


示例11: tail

varargs int tail(string file){    if (extern_call())        set_this_object(previous_object());    if (!stringp(file) || !this_player())        return 0;    string txt = read_bytes(file, -(TAIL_MAX_BYTES + 80), (TAIL_MAX_BYTES + 80));    if (!stringp(txt))        return 0;    // cut off first (incomplete) line    int index = strstr(txt, "/n");    if (index > -1) {        if (index + 1 < strlen(txt))            txt = txt[index+1..];        else            txt = "";    }
开发者ID:BrewerGit,项目名称:ldmud,代码行数:19,


示例12: do_wear

int do_wear(object me, object ob){	string str;	if( ob->query("female_only")	&&	(string)me->query("gender") != "
C++ stringprintf函数代码示例
C++ stringmatchlen函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。