这篇教程C++ GetPathComponent函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetPathComponent函数的典型用法代码示例。如果您正苦于以下问题:C++ GetPathComponent函数的具体用法?C++ GetPathComponent怎么用?C++ GetPathComponent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetPathComponent函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: ThrowMagickExceptionListMagickExport 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函数代码示例
|