圆括号中的字符串是资源的XML文件路径和xml元素的ID。
The string in the parentheses is the XML file path of the resource and the ID of the XML element.
这个构造函数将每一个字符串解释为目录路径,并构造一个数据结构以表示这个路径下面的文件和子目录。
The constructor interprets each string as a directory path and builds a data structure to represent the files and child directories under that path.
尽管basename和dirname是很好的工具,但有时可能需要执行更高级的字符串“截断”,而不只是标准的路径名操作。
While basename and dirname are great tools, there are times where we may need to perform more advanced string "chopping" operations than just standard pathname manipulations.
此代码示例将文件路径和元素GUID 存储在与元素关联的引用字符串中。
The sample code stores file paths and element GUIDs in reference strings that are associated with the element.
返回指定路径字符串的文件名和扩展名。
Returns the file name and extension of the specified path string.
范围和路径指定为字符串形式。
范围和路径指定为字符串形式。
应用推荐