Ingen beskrivning
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

utils.h 672B

12345678910111213141516171819
  1. #ifndef RUNNER_UTILS_H_
  2. #define RUNNER_UTILS_H_
  3. #include <string>
  4. #include <vector>
  5. // Creates a console for the process, and redirects stdout and stderr to
  6. // it for both the runner and the Flutter library.
  7. void CreateAndAttachConsole();
  8. // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
  9. // encoded in UTF-8. Returns an empty std::string on failure.
  10. std::string Utf8FromUtf16(const wchar_t* utf16_string);
  11. // Gets the command line arguments passed in as a std::vector<std::string>,
  12. // encoded in UTF-8. Returns an empty std::vector<std::string> on failure.
  13. std::vector<std::string> GetCommandLineArguments();
  14. #endif // RUNNER_UTILS_H_