reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/StringSwitchTest.cpp
  193   EXPECT_EQ(OSType::Windows, Translate(llvm::StringRef("WIND\0WS", 7)));
  194   EXPECT_EQ(OSType::Windows, Translate("WIN32"));
  195   EXPECT_EQ(OSType::Windows, Translate("WINNT"));
  197   EXPECT_EQ(OSType::Linux, Translate("LINUX"));
  198   EXPECT_EQ(OSType::Linux, Translate("UNIX"));
  199   EXPECT_EQ(OSType::Linux, Translate("*NIX"));
  200   EXPECT_EQ(OSType::Linux, Translate("POSIX"));
  202   EXPECT_EQ(OSType::Windows, Translate(llvm::StringRef("wind\0ws", 7)));
  203   EXPECT_EQ(OSType::Linux, Translate("linux"));
  205   EXPECT_EQ(OSType::Unknown, Translate("wind"));
  206   EXPECT_EQ(OSType::Unknown, Translate(""));