28+ results for '.startswith("windows 9"' (0 ms)

Not the results you expected?

EnvironmentUtil.java (https://github.com/oberlies/tycho.git) Java · 114 lines

60

61 public static boolean isWindows() {

62 return OS.startsWith(WINDOWS_OS);

63 }

64

StoreAppFactory.cs (https://github.com/Klocman/Bulk-Crap-Uninstaller.git) C# · 108 lines

91 }

92

93 if (result.InstallLocation.StartsWith(windowsPath, StringComparison.InvariantCultureIgnoreCase))

94 {

95 result.SystemComponent = true;

DefaultProvider.java (https://github.com/openjdk/jdk.git) Java · 94 lines

58 out.println("Passed.");

59

60 if (!OS_NAME.startsWith(WINDOWS)) {

61 out.println("TEST: NativePRNG supported on all platforms"

62 + "(except Windows), by SUN provider");

OperatingSystem.java (https://github.com/MyCATApache/Mycat-Server.git) Java · 145 lines

102 return LINUX;

103 }

104 if (osName.startsWith(WINDOWS_OS_PREFIX)) {

105 return WINDOWS;

106 }

SimpleConfiguration.java (https://github.com/luntain/vrapper.git) Java · 66 lines

54 }

55 public static NewLine parse(String nl) {

56 if (nl.startsWith(WINDOWS.nl)) {

57 return WINDOWS;

58 } else if (nl.startsWith(UNIX.nl)) {

PingConfigLoader.java (http://xerela.googlecode.com/svn/trunk/) Java · 160 lines

83

84 String os = System.getProperty("os.name");

85 if (os.startsWith(WINDOWS))

86 {

87 os = WINDOWS;

FileSystem.java (https://github.com/jexp/idea2.git) Java · 106 lines

99 canonicalFileName = canonicalFileName.substring(0, canonicalFileName.length() - 1);

100 }

101 if (System.getProperty(OS_NAME_PARAMETER).startsWith(WINDOWS)) {

102 return canonicalFileName.toLowerCase();

103 }

not-found.component.ts (https://github.com/cyph/cyph.git) TypeScript · 103 lines

53 /* Workaround for bizarre Electron/Chromium behavior on Windows */

54 const windowsURLPrefix = 'C:/%23';

55 if (this.router.url.startsWith(windowsURLPrefix)) {

56 this.router.navigateByUrl(

57 this.router.url.slice(windowsURLPrefix.length)

OperatingSystem.java (https://github.com/tongcheng-elong/flink.git) Java · 154 lines

110 return LINUX;

111 }

112 if (osName.startsWith(WINDOWS_OS_PREFIX)) {

113 return WINDOWS;

114 }

OperatingSystems.java (git://github.com/jclouds/jclouds.git) Java · 93 lines

45 else if (description.startsWith(RHEL)) return OsFamily.RHEL;

46 else if (description.startsWith(UBUNTU)) return OsFamily.UBUNTU;

47 else if (description.startsWith(WINDOWS)) return OsFamily.WINDOWS;

48 else if (description.startsWith(CLOUD_LINUX)) return OsFamily.CLOUD_LINUX;

49 else if (description.startsWith(VYATTACE)) return OsFamily.LINUX;

LocalNetwork.java (https://github.com/WeBankFinTech/Qualitis.git) Java · 80 lines

38 public static String getLocalIpByFirstNetCard() {

39 String os = System.getProperty("os.name").toLowerCase();

40 if (os.startsWith(WINDOWS_PREFIX)) {

41 try {

42 for (Enumeration<NetworkInterface> e = NetworkInterface.getNetworkInterfaces(); e.hasMoreElements(); ) {

DotNetValidator.cs (https://github.com/Microsoft/WindowsTemplateStudio.git) C# · 57 lines

38

39 var runtimeVersions = result.Split(new[] { Environment.NewLine }, StringSplitOptions.None)

40 .Where(v => v.StartsWith(WindowsAppRuntimeName, StringComparison.OrdinalIgnoreCase))

41 .Select(r => new Version(r.Split(' ')[1]));

42

FileSystem.java (git://github.com/JetBrains/intellij-community.git) Java · 112 lines

105 canonicalFileName = canonicalFileName.substring(0, canonicalFileName.length() - 1);

106 }

107 if (System.getProperty(OS_NAME_PARAMETER).startsWith(WINDOWS)) {

108 return StringUtil.toLowerCase(canonicalFileName);

109 }

GridRowCtx.java (https://bitbucket.org/idempiere/idempiere/) Java · 240 lines

63 String keyStr = (String)key;

64

65 if (!keyStr.startsWith(windowStr))

66 {

67 return null;

Uri.kt (https://github.com/TeamCodeStream/CodeStream.git) Kotlin · 54 lines

24 return null

25 }

26 if (uri.startsWith(WINDOWS_NETWORK_FILE_BEGIN)) {

27 return uri

28 } else if (!uri.startsWith(URI_FILE_BEGIN)) {

GoPathContext.java (https://github.com/SonarSource/sonar-go.git) Java · 108 lines

80 if (path.startsWith(LINUX_ABSOLUTE_PREFIX)) {

81 return path.substring(1);

82 } else if (path.startsWith(WINDOWS_ABSOLUTE_PREFIX)) {

83 Matcher matcher = WINDOWS_ABSOLUTE_REGEX.matcher(path);

84 if (matcher.find()) {

UDPListener.cs (https://github.com/cqjjjzr/WindowsGoodbye.git) C# · 92 lines

64

65 var info = Encoding.UTF8.GetString(buffer.ToArray());

66 if (info.StartsWith(WindowsGoodbyeAuthTask.DeviceAlivePrefix) &&

67 info.Length > WindowsGoodbyeAuthTask.DeviceAlivePrefix.Length)

68 {

73 if (session != null) session.Status = DeviceStatus.Established;

74 WindowsGoodbyeAuthTask.findAuth = false;

75 } else if (info.StartsWith(WindowsGoodbyeAuthTask.AuthResponsePrefix) &&

76 info.Length > WindowsGoodbyeAuthTask.AuthResponsePrefix.Length)

77 {

EnvironmentUtil.java (https://github.com/jsievers/sonatype-tycho.git) Java · 80 lines

45

46 public static boolean isWindows() {

47 return OS.startsWith(WINDOWS_OS);

48 }

49

PathUtils.java (https://bitbucket.org/daigua/diablo.git) Java · 24 lines

15 * 处理windows文件路径

16 * */

17 if(path.startsWith(WINDOWS_FILE_PROTOCOL)){

18 path = path.substring(WINDOWS_FILE_PROTOCOL.length());

19 }

ProjectUtils.java (https://github.com/alaksh10/phresco.git) Java · 120 lines

46 // for linux its enough to create the folder with '.' to make it as

47 // hidden

48 if (System.getProperty(OSNAME).startsWith(WINDOWS)) {

49 Runtime.getRuntime().exec(

50 "attrib +h " + STR_DOUBLE_QUOTES + phrescoFolder.getPath() + STR_DOUBLE_QUOTES);

OperatingSystem.java (https://github.com/bjoernlohrmann/nephele-streaming.git) Java · 143 lines

101 if (osName.startsWith(LINUX_OS_PREFIX))

102 return LINUX;

103 if (osName.startsWith(WINDOWS_OS_PREFIX))

104 return WINDOWS;

105 if (osName.startsWith(MAC_OS_PREFIX))

OperatingSystemType.java (https://github.com/dreedyman/Rio.git) Java · 130 lines

103 public static boolean isWindows() {

104 String opSys = System.getProperty("os.name");

105 return opSys.startsWith(WINDOWS);

106 }

107

114 public static boolean isWindows2K() {

115 String opSys = System.getProperty("os.name");

116 return opSys.startsWith(WINDOWS_2K);

117 }

118

125 public static boolean isWindowsXP() {

126 String opSys = System.getProperty("os.name");

127 return opSys.startsWith(WINDOWS_XP);

128 }

129

BrowserLauncher.java (https://github.com/harrisonrw/Dyna.git) Java · 91 lines

56 openURL.invoke(null, new Object[] {url});

57 }

58 else if (osName.startsWith(WINDOWS))

59 {

60 Runtime.getRuntime().exec("cmd /c start " + url);

BinarySelector.java (https://bitbucket.org/muxa/conesc.git) Java · 89 lines

42 return LINUX+realArch;

43 }

44 if (os.startsWith(WINDOWS)) {

45 String arch = System.getenv("PROCESSOR_ARCHITECTURE");

46 String wow64Arch = System.getenv("PROCESSOR_ARCHITEW6432");

PlatformUtils.java (https://github.com/ayasuda2003/docwaza.git) Java · 161 lines

106

107 public static boolean isWindows() {

108 return OS_NAME.startsWith(WINDOWS);

109 }

110

FlexUnitLauncher.java (https://github.com/jhabegger/flexunit.git) Java · 94 lines

44 String env = System.getProperty("os.name");

45

46 if (env.startsWith(WINDOWS_OS))

47 {

48 LoggingUtil.log("OS: [Windows]");

OperatingSystemType.java (https://github.com/jramsdale/Rio.git) Java · 167 lines

108 public static boolean isWindows() {

109 String opSys = System.getProperty("os.name");

110 return (opSys.startsWith(WINDOWS));

111 }

112

119 public static boolean isWindows2K() {

120 String opSys = System.getProperty("os.name");

121 return (opSys.startsWith(WINDOWS_2K));

122 }

123

130 public static boolean isWindowsXP() {

131 String opSys = System.getProperty("os.name");

132 return (opSys.startsWith(WINDOWS_XP));

133 }

134

WindowState.ts (https://github.com/android/platform_development.git) TypeScript · 127 lines

27 const identifierName = proto.windowContainer.identifier?.title ?? proto.identifier?.title ?? ""

28 var windowType = 0

29 if (identifierName.startsWith(WindowState.STARTING_WINDOW_PREFIX)) {

30 windowType = WindowState.WINDOW_TYPE_STARTING

31 } else if (proto.animatingExit) {

32 windowType = WindowState.WINDOW_TYPE_EXITING

33 } else if (identifierName.startsWith(WindowState.DEBUGGER_WINDOW_PREFIX)) {

34 windowType = WindowState.WINDOW_TYPE_STARTING

35 }

37 var nameOverride = identifierName

38

39 if (identifierName.startsWith(WindowState.STARTING_WINDOW_PREFIX)) {

40 nameOverride = identifierName.substring(WindowState.STARTING_WINDOW_PREFIX.length)

41 } else if (identifierName.startsWith(WindowState.DEBUGGER_WINDOW_PREFIX)) {