* @brief Rebase a relative path onto the configuration directory. */
| 262 | * @brief Rebase a relative path onto the configuration directory. |
| 263 | */ |
| 264 | static String |
| 265 | makeConfigPath(const String &path) |
| 266 | { |
| 267 | if (path.empty() || path[0] == '/') { |
| 268 | return path; |
| 269 | } |
| 270 | |
| 271 | return String(TSConfigDirGet()) + "/" + path; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * @brief a helper function which loads the classifier from files. |
no test coverage detected