Lines Matching refs:path
27 const char* path) {
43 if (path != nullptr) {
44 // FIXME(bnoordhuis) It's questionable to interpret the file path as UTF-8.
45 path_string = String::NewFromUtf8(isolate, path).ToLocalChecked();
75 static Local<String> StringFromPath(Isolate* isolate, const char* path) {
77 if (strncmp(path, "\\\\?\\UNC\\", 8) == 0) {
81 String::NewFromUtf8(isolate, path + 8).ToLocalChecked());
82 } else if (strncmp(path, "\\\\?\\", 4) == 0) {
83 return String::NewFromUtf8(isolate, path + 4).ToLocalChecked();
87 return String::NewFromUtf8(isolate, path).ToLocalChecked();
95 const char* path,
116 if (path != nullptr) {
117 js_path = StringFromPath(isolate, path);
191 const char* path) {
201 if (path) {
207 String::NewFromUtf8(isolate, path).ToLocalChecked());
220 if (path != nullptr) {
223 String::NewFromUtf8(isolate, path).ToLocalChecked())