zeroshade commented on code in PR #2918:
URL: https://github.com/apache/arrow-adbc/pull/2918#discussion_r2125321117


##########
c/driver_manager/adbc_driver_manager.cc:
##########
@@ -632,6 +985,36 @@ static const char kDefaultEntrypoint[] = "AdbcDriverInit";
 
 // Other helpers (intentionally not in an anonymous namespace so they can be 
tested)
 
+std::vector<std::filesystem::path> AdbcParsePath(const std::string_view& path) 
{
+  std::vector<std::filesystem::path> result;
+  if (path.empty()) {
+    return result;
+  }
+
+#ifdef _WIN32
+  constexpr char delimiter = ';';
+#else
+  constexpr char delimiter = ':';
+#endif  // _WIN32
+
+  bool in_quotes = false;

Review Comment:
   I assume any backlash would be handled by the shell or string handling 
internally. Like I said, I was following the logic used by the Go 
implementation (the only implementation I was able to find for splitting a 
list) 
https://cs.opensource.google/go/go/+/refs/tags/go1.24.3:src/path/filepath/path_windows.go;l=24



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to