As you know length of path in NTFS file system may reach 32767 characters but most of functions in Windows API permit a maximum path length 260 characters. The LibMaster.com NTFSpath library allows to work with a maximum path length 32,767 characters which is allowed in NTFS. It contains most useful functions for working with path strings and NTFS file system. Both of separators "/" and "\" are equivalent for all of the functions in the library. Also no one of the functions do not trim spaces before the begin and after the end of an input string because NTFS allows space characters at the begin and at the end of filename or directory name. The archive with the library has an application with examples of using for the all functions in the library.
You can use this library for free.