Basename

返回路径中的文件名

常用释义

词性释义

返回路径中的文件名(计算机术语)
例句
  • 全部
The basename attribute is required, and identifies the resource bundle to be set as the default.
basename属性是必需的,它标识了设为缺省值的资源束。
请注意,basename属性的值不应当包含任何本地化后缀或文件扩展名。
Basename是一个截断字符串的极简便工具。
The following array elements are returned: dirname, basename and extension.
包括以下的数组单元:dirname,basename和extension。
std: : string basename(const path&): This is the complementary routine to extension: It returns the string before . in the file name.
stringbasename(constpath&):这是与extension互补的例程。它将返回文件名中。
The basename for the example resource bundle presented in Listings 4 and 5 is com. taglib. weblog. Greeting.
清单4和清单5中给出的示例资源束的基名为com.
Now suppose that a ResourceManager has been created to represent the resources with this basename.
现在假定已创建ResourceManager来表示具有此基名称的资源。
For example, suppose that an assembly has several resources in a resource file with the basename "MyResources" .
例如,假定某个程序集在基名称为“MyResources”的资源文件中有几个资源。
It's companion, called dirname, returns the "other" part of the path that basename throws away
它的相关命令dirname返回basename丢弃的“另”一部分路径。
把资源包baseName映射到产品上下文根中