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

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

51自学网 2021-06-01 21:12:28
  C++
这篇教程C++ GetPathComponent函数代码示例写得很实用,希望能帮到您。

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

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

示例1: ThrowMagickExceptionList

MagickExport MagickBooleanType ThrowMagickExceptionList(  ExceptionInfo *exception,const char *module,const char *function,  const size_t line,const ExceptionType severity,const char *tag,  const char *format,va_list operands){  char    message[MaxTextExtent],    path[MaxTextExtent],    reason[MaxTextExtent];  const char    *locale,    *type;  int    n;  MagickBooleanType    status;  size_t    length;  assert(exception != (ExceptionInfo *) NULL);  assert(exception->signature == MagickSignature);  locale=GetLocaleExceptionMessage(severity,tag);  (void) CopyMagickString(reason,locale,MaxTextExtent);  (void) ConcatenateMagickString(reason," ",MaxTextExtent);  length=strlen(reason);#if defined(MAGICKCORE_HAVE_VSNPRINTF)  n=vsnprintf(reason+length,MaxTextExtent-length,format,operands);#else  n=vsprintf(reason+length,format,operands);#endif  if (n < 0)    reason[MaxTextExtent-1]='/0';  status=LogMagickEvent(ExceptionEvent,module,function,line,"%s",reason);  GetPathComponent(module,TailPath,path);  type="undefined";  if ((severity >= WarningException) && (severity < ErrorException))    type="warning";  if ((severity >= ErrorException) && (severity < FatalErrorException))    type="error";  if (severity >= FatalErrorException)    type="fatal";  (void) FormatLocaleString(message,MaxTextExtent,"%s @ %s/%s/%s/%.20g",reason,    type,path,function,(double) line);  (void) ThrowException(exception,severity,message,(char *) NULL);  return(status);}
开发者ID:Distrotech,项目名称:ImageMagick,代码行数:50,


示例2: LoadTypeCache

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                                                             %%                                                                             %%                                                                             %+   L o a d T y p e C a c h e                                                 %%                                                                             %%                                                                             %%                                                                             %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  LoadTypeCache() loads the type configurations which provides a mapping%  between type attributes and a type name.%%  The format of the LoadTypeCache method is:%%      MagickBooleanType LoadTypeCache(SplayTreeInfo *type_cache,%        const char *xml,const char *filename,const size_t depth,%        ExceptionInfo *exception)%%  A description of each parameter follows:%%    o xml:  The type list in XML format.%%    o filename:  The type list filename.%%    o depth: depth of <include /> statements.%%    o exception: return any errors or warnings in this structure.%*/static inline MagickBooleanType SetTypeNodePath(const char *filename,  char *font_path,const char *token,char **target){  char   *path;  path=ConstantString(token);#if defined(MAGICKCORE_WINDOWS_SUPPORT)  if (strchr(path,'@') != (char *) NULL)    SubstituteString(&path,"@[email
C++ GetPathData函数代码示例
C++ GetPathAtMapEnd函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。