是否可以使用string.match并返回捕获,直到最后一个.字符停止在扩展部分?
无论出于何种原因,MinGW 的 gcc 似乎无法找到此变量的“#define”块。完整的错误是
.../mapped.c:396:28: error: '_zzip_strcasecmp' undeclared (first use in this function)
Run Code Online (Sandbox Code Playgroud)
mapping.c 的内容:
/*
* NOTE: this is part of libzzipmmapped (i.e. it is not libzzip).
* ==================
*
* These routines are fully independent from the traditional zzip
* implementation. They assume a readonly mmapped sharedmem block
* representing a complete zip file. The functions show how to
* parse the structure, find files and return a decoded bytestream.
*
* These routines are a bit simple …Run Code Online (Sandbox Code Playgroud)