PageRenderTime 533ms queryFilters 0ms Sphinxql 440ms app.CodeModel.GetByIds 11ms findMatchingLines 41ms GetByIds 52ms meta 0ms repositoryFilters 8ms languageFilters 1ms sourceFilters 5ms

49,126 results for 'if version,startswith windows 9 ' (533 ms)

Source

Language

Repository

AntProjectTest.java https://github.com/Ant-Grand/Grand.git | Java | 353 lines
88        // TODO is this a misfeature of Windows or Ant?
89       File referenceFile = System.getProperty("os.version").startsWith("Windows")
90               || System.getProperty("os.name").startsWith("Windows")
156    public final void testAntCallWithUndefinedTask() {
157        // TODO check if this test is useful.
158        expectLogContaining("undefined-task", "Outputting to ");
171        assertEquals("Target", "['default']", endNode.getName());
172        // TODO is this a misfeature of Windows or Ant?
173        File referenceFile = System.getProperty("os.version").startsWith("Windows")
230        assertNotNull("if-cond-test Node", node);
231        assertEquals("If condition for target if-cond-test", "test-if-condition", node
232                .getIfCondition());
235    /**
236     * Test if the nested tasks are found (ticket #29).
237     */
Triple.cpp https://github.com/efcs/llvm.git | C++ | 1,527 lines
274    .Case("sparcel", sparcel)
275    .Case("sparcv9", sparcv9)
276    .Case("systemz", systemz)
597      return Triple::MachO;
598    else if (T.isOSWindows())
599      return Triple::COFF;
758  // If they are not there already, permute the components into their canonical
759  // positions by seeing if they parse as a valid architecture, and if so moving
760  // the component to the architecture position etc.
951  for (unsigned i = 0; i != 3; ++i) {
952    if (Name.empty() || Name[0] < '0' || Name[0] > '9')
953      break;
1499
1500  // If no specific architecture version is requested, return the minimum CPU
1501  // required by the OS and environment.
Triple.cpp https://github.com/ehsan/llvm-1.git | C++ | 999 lines
194    .Case("sparc", sparc)
195    .Case("sparcv9", sparcv9)
196    .Case("systemz", systemz)
243    .Case("sparc", Triple::sparc)
244    .Cases("sparcv9", "sparc64", Triple::sparcv9)
245    .Case("tce", Triple::tce)
452  // If they are not there already, permute the components into their canonical
453  // positions by seeing if they parse as a valid architecture, and if so moving
454  // the component to the architecture position etc.
640  for (unsigned i = 0; i != 3; ++i) {
641    if (OSName.empty() || OSName[0] < '0' || OSName[0] > '9')
642      break;
967    result = llvm::StringSwitch<const char *>(MArch)
968      .Case("ep9312", "ep9312")
969      .Case("iwmmxt", "iwmmxt")
Triple.cpp https://github.com/Zoxc/llvm.git | C++ | 1,036 lines
202    .Case("sparc", sparc)
203    .Case("sparcv9", sparcv9)
204    .Case("systemz", systemz)
255    .Case("sparc", Triple::sparc)
256    .Cases("sparcv9", "sparc64", Triple::sparcv9)
257    .Case("tce", Triple::tce)
474  // If they are not there already, permute the components into their canonical
475  // positions by seeing if they parse as a valid architecture, and if so moving
476  // the component to the architecture position etc.
664  for (unsigned i = 0; i != 3; ++i) {
665    if (OSName.empty() || OSName[0] < '0' || OSName[0] > '9')
666      break;
1004    result = llvm::StringSwitch<const char *>(MArch)
1005      .Case("ep9312", "ep9312")
1006      .Case("iwmmxt", "iwmmxt")
SystemUtilsTest.java https://bitbucket.org/Ranmanli/prfl.git | Java | 376 lines
46        assertEquals(1, cons.length);
47        assertTrue(Modifier.isPublic(cons[0].getModifiers()));
48        assertTrue(Modifier.isPublic(SystemUtils.class.getModifiers()));
48        assertTrue(Modifier.isPublic(SystemUtils.class.getModifiers()));
49        assertFalse(Modifier.isFinal(SystemUtils.class.getModifiers()));
50    }
323        assertFalse(SystemUtils.isOSNameMatch(osName, "Windows"));
324        osName = "Windows 95";
325        assertTrue(SystemUtils.isOSNameMatch(osName, "Windows"));
350        osVersion = "4.0";
351        assertFalse(SystemUtils.isOSMatch(osName, osVersion, "Windows 9", "4.1"));
352        osName = "OS/2";
353        osVersion = "4.0";
354        assertFalse(SystemUtils.isOSMatch(osName, osVersion, "Windows 9", "4.1"));
355    }
Triple.cpp https://bitbucket.org/HanyunseopEverspin/eversafe_ios_obfuscator_archive.git | C++ | 1,608 lines
286    .Case("sparcel", sparcel)
287    .Case("sparcv9", sparcv9)
288    .Case("systemz", systemz)
628      return Triple::MachO;
629    else if (T.isOSWindows())
630      return Triple::COFF;
791  // If they are not there already, permute the components into their canonical
792  // positions by seeing if they parse as a valid architecture, and if so moving
793  // the component to the architecture position etc.
988  for (unsigned i = 0; i != 3; ++i) {
989    if (Name.empty() || Name[0] < '0' || Name[0] > '9')
990      break;
1579
1580  // If no specific architecture version is requested, return the minimum CPU
1581  // required by the OS and environment.
data.py https://bitbucket.org/AlgirdasKartaviciusKT/ai.git | Python | 1,487 lines
159    >>> os.path.normpath(split_resource_url(normalize_resource_url('file:grammar.fcfg'))[1]) == \
160    ... ('\\' if windows else '') + os.path.abspath(os.path.join(os.curdir, 'grammar.fcfg'))
161    True
483
484        :raise IOError: If the given zipfile does not exist, or if it
485        does not contain the specified entry.
680    Copy the given resource to a local file.  If no filename is
681    specified, then use the URL's filename.  If there is already a
682    file named ``filename``, then raise a ``ValueError``.
771
772    If no format is specified, ``load()`` will attempt to determine a
773    format based on the resource name's file extension.  If that
785    :type cache: bool
786    :param cache: If true, add this resource to a cache.  If load()
787        finds a resource in its cache, then it will return it from the
BrowserLauncher.java https://github.com/Elblonko/kepler.git | Java | 977 lines
16
17 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
18 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
70 under Mac OS 8.0 and 8.1), and for all Mac OS 8.5 and later systems.
71 On Windows, it only runs under Win32 systems (Windows 95, 98, and NT
72 4.0, as well as later versions of all).  On other systems, this drops
77
78 <p> This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu)
79 and may be redistributed or modified in any form without restrictions as
101That URL no longer exists, there is a replacement package which is LGPL'd.
102See <a href="http://web.archive.org/web/20031028032907/http://browserlauncher.sourceforge.net/"><code>http://web.archive.org/web/20031028032907/http://browserlauncher.sourceforge.net/</code></a> for the original web page.</p>
103
653        } else if (osName.startsWith("Windows")) {
654            if (osName.indexOf("9") != -1) {
655                jvm = WINDOWS_9x;
JNIEnv.java https://github.com/eix128/xuggle-xuggler.git | Java | 225 lines
5 *
6 * Xuggle-Xuggler-Main is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
52    MAC,
53    /** Microsoft Windows family of operating systems */
54    WINDOWS,
78  /**
79   * Get the CPU architecture based on the passed in javaCPUArch specifier.
80   * 
93    // first parse the java arch
94    if (javaCPUArch.startsWith("x86_64") ||
95        javaCPUArch.startsWith("amd64") ||
172    {
173      if (osName.startsWith("Windows"))
174        retval = OSFamily.WINDOWS;
SystemUtils.java https://bitbucket.org/Ranmanli/prfl.git | Java | 1,455 lines
1138     * <p>
1139     * Is {@code true} if this is Windows 95.
1140     * </p>
1146     */
1147    public static final boolean IS_OS_WINDOWS_95 = getOSMatches(OS_NAME_WINDOWS_PREFIX + " 9", "4.0");
1148    // Java 1.2 running on Windows98 returns 'Windows 95', hence the above
1151     * <p>
1152     * Is {@code true} if this is Windows 98.
1153     * </p>
1159     */
1160    public static final boolean IS_OS_WINDOWS_98 = getOSMatches(OS_NAME_WINDOWS_PREFIX + " 9", "4.1");
1161    // Java 1.2 running on Windows98 returns 'Windows 95', hence the above
1172     */
1173    public static final boolean IS_OS_WINDOWS_ME = getOSMatches(OS_NAME_WINDOWS_PREFIX, "4.9");
1174    // Java 1.2 running on WindowsME may return 'Windows 95', hence the above
PortableExecutable.cpp https://bitbucket.org/BlackLuny/crysearch-memory-scanner.git | C++ | 2,276 lines
14
15// Checks whether a RVA points inside a section of the executable. Returns true if so and false if not.
16const bool RVAPointsInsideSection(const DWORD rva)
20	{
21		// Check if the specified RVA is within the bounds of a section.
22		if (rva > section.BaseAddress && rva < (section.BaseAddress + section.RawSectionSize))
188	Tuple2<int, int> winver;
189	if (GetInlineWindowsVersion(&winver))
190	{
2114	// Attempts to load a dynamic link library into the target process.
2115	// Returns true if the operation succeeded, and false if it did not succeed.
2116	bool PortableExecutable64::LoadLibraryExternalHijack(const String& library, HANDLE hThread) const
2166							 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x48, 0xB9, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x48, 0x83, 0xEC,
2167							 0x20, 0xFF, 0xD3, 0x48, 0x83, 0xC4, 0x20, 0x41, 0x5B, 0x41, 0x5A, 0x41, 0x59, 0x41, 0x58, 0x5A, 0x59, 0x5B,
2168							 0x48, 0xB8, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xC7, 0x00, 0x37, 0x13, 0x00, 0x00, 0x58, 0xC3 };
WebToolkit.java https://bitbucket.org/isharasamantha/webswing.git | Java | 784 lines
285		this.desktopProperties.put("win.frame.inactiveBorderColor", new java.awt.Color(244, 247, 252));
286		this.desktopProperties.put("win.frame.inactiveCaptionColor", new java.awt.Color(191, 205, 219));
287		this.desktopProperties.put("win.frame.inactiveCaptionGradientColor", new java.awt.Color(215, 228, 242));
332		this.desktopProperties.put("win.text.fontSmoothingType", 2);
333		this.desktopProperties.put("win.text.grayedTextColor", new java.awt.Color(109, 109, 109));
334		this.desktopProperties.put("win.tooltip.backgroundColor", new java.awt.Color(255, 255, 225));
683			systemColors[13] = 0xff000000;
684			systemColors[14] = 0xff3399ff;
685			systemColors[15] = 0xffffffff;
691			systemColors[21] = 0xffa0a0a0;
692			systemColors[22] = 0xff696969;
693			systemColors[23] = 0xffc8c8c8;
725	public void defaultShutdownProcedure() {
726		//first send windows closing event to all windows
727		for (Window w : Window.getWindows()) {
WebToolkit.java https://bitbucket.org/manishgarg90/webswing.git | Java | 784 lines
285		this.desktopProperties.put("win.frame.inactiveBorderColor", new java.awt.Color(244, 247, 252));
286		this.desktopProperties.put("win.frame.inactiveCaptionColor", new java.awt.Color(191, 205, 219));
287		this.desktopProperties.put("win.frame.inactiveCaptionGradientColor", new java.awt.Color(215, 228, 242));
332		this.desktopProperties.put("win.text.fontSmoothingType", 2);
333		this.desktopProperties.put("win.text.grayedTextColor", new java.awt.Color(109, 109, 109));
334		this.desktopProperties.put("win.tooltip.backgroundColor", new java.awt.Color(255, 255, 225));
683			systemColors[13] = 0xff000000;
684			systemColors[14] = 0xff3399ff;
685			systemColors[15] = 0xffffffff;
691			systemColors[21] = 0xffa0a0a0;
692			systemColors[22] = 0xff696969;
693			systemColors[23] = 0xffc8c8c8;
725	public void defaultShutdownProcedure() {
726		//first send windows closing event to all windows
727		for (Window w : Window.getWindows()) {
gcctoolchain.cpp https://bitbucket.org/kyanha/qt-creator.git | C++ | 1,216 lines
269            width = 64;
270        } else if (p == QLatin1String("darwin9")) {
271            width = 32;
807    QStringList makes;
808    if (Utils::HostOsInfo::isWindowsHost()) {
809        makes << QLatin1String("mingw32-make.exe");
917{
918    if (Utils::HostOsInfo::isWindowsHost())
919        return QList<FileName>() << FileName::fromString(QLatin1String("win32-g++"));
935    QStringList makes;
936    if (Utils::HostOsInfo::isWindowsHost()) {
937        makes << QLatin1String("mingw32-make.exe");
974    return autoDetectToolchains(QLatin1String("g++"),
975                                Abi(ha.architecture(), Abi::WindowsOS, Abi::WindowsMSysFlavor, Abi::PEFormat, ha.wordWidth()));
976}
gcctoolchain.cpp https://bitbucket.org/kpozn/qt-creator-py-reborn.git | C++ | 1,180 lines
27**
28** If you have questions regarding the use of this file, please contact
29** Nokia at qt-info@nokia.com.
86    cpp.closeWriteChannel();
87    if (!cpp.waitForFinished()) {
88        Utils::SynchronousProcess::stopProcess(cpp);
91    }
92    if (cpp.exitStatus() != QProcess::NormalExit) {
93        qWarning("%s: '%s' crashed.", Q_FUNC_INFO, qPrintable(gcc.toUserOutput()));
270            width = 64;
271        } else if (p == QLatin1String("darwin9")) {
272            width = 32;
933    return autoDetectToolchains(QLatin1String("g++"),
934                                Abi(ha.architecture(), Abi::WindowsOS, Abi::WindowsMSysFlavor, Abi::PEFormat, ha.wordWidth()));
935}
Processor.java https://github.com/carrot-garden/osgi_bnd.git | Java | 1,781 lines
364				catch (Throwable t) {
365					// We can defer the error if the plugin specifies
366					// a command name. In that case, we'll verify that
1046		Properties p = new Properties();
1047		Manifest manifest = new Manifest(in);
1048		for (Iterator<Object> it = manifest.getMainAttributes().keySet().iterator(); it.hasNext();) {
1531					osversion = new Version(6,2,0);
1532					osnames = "Windows8,Windows 8,Win32"; 
1533				} else if (sysPropOsVersion.startsWith("6.1")) {
1534					osversion = new Version(6, 1, 0);
1535					osnames = "Windows7,Windows 7,Win32";
1536				} else if (sysPropOsName.startsWith("6.0")) {
1537					osversion = new Version(6, 0, 0);
1538					osnames = "WindowsVista,WinVista,Windows Vista,Win32";
1539				} else if (sysPropOsName.startsWith("5.1")) {
InterpreterInfo.java https://github.com/rdenadai/Pydev.git | Java | 1,409 lines
766                forcedLibs.add("System.Security.Cryptography.Pkcs");
767                forcedLibs.add("System.Security.Cryptography.X509Certificates");
768                forcedLibs.add("System.Security.Cryptography.Xml");
1137                if(sp.o1.length() != 0 && sp.o2.length() != 0){
1138                    if(!checkIfPythonPathEnvVarAndWarnIfIs(sp.o1)){
1139                        lst.add(s);
1226            
1227            if(checkIfPythonPathEnvVarAndWarnIfIs(key)){
1228                it.remove();
1238     */
1239    public static boolean checkIfPythonPathEnvVarAndWarnIfIs(String key) {
1240        boolean isPythonPath = false;
1300        }
1301        if(REF.isWindowsPlatform()){
1302            return interpreter.equalsIgnoreCase(executableOrJar);
CommonUtils.java https://github.com/zootella/learning.git | Java | 1,206 lines
232		// set the operating system variables
233		_isWindows = os.indexOf("windows") != -1;
234		if (os.indexOf("windows nt") != -1 || 
244			_isWindowsXP = true;
245		if(os.indexOf("windows 95") != -1)
246		   _isWindows95 = true;
246		   _isWindows95 = true;
247		if(os.indexOf("windows 98") != -1)
248		   _isWindows98 = true;
441    /**
442     * Returns true if this is Windows NT or Windows 2000 and
443	 * hence can support a system tray feature.
456	public static boolean isUltrapeerOS() {
457	    return !(_isWindows98 || _isWindows95 || _isWindowsMe || _isWindowsNT);
458	}
PicnomeSerial.java https://github.com/tkrworks/pic2osc.git | Java | 1,332 lines
270      osc_sl.putConstraint(SpringLayout.WEST, listenport_l, 22, SpringLayout.WEST, osc_p);
271    else if(System.getProperty("os.name").startsWith("Windows"))
272      osc_sl.putConstraint(SpringLayout.WEST, listenport_l, 16, SpringLayout.WEST, osc_p);
374      osc_ext_midi_sl.putConstraint(SpringLayout.WEST, listenport_ext_midi_l, 22, SpringLayout.WEST, osc_ext_midi_p);
375    else if(System.getProperty("os.name").startsWith("Windows"))
376      osc_ext_midi_sl.putConstraint(SpringLayout.WEST, listenport_ext_midi_l, 16, SpringLayout.WEST, osc_ext_midi_p);
569    }
570    else if(System.getProperty("os.name").startsWith("Windows")) {
571      ais_tab.setPreferredSize(new Dimension(362, 130));
676              setSize(402, (int)d + 10);
677            else if(System.getProperty("os.name").startsWith("Windows"))
678              setSize(418, (int)d + 25);
907        }
908        if(ch == -1 || ch == 59) {
909          pserial.update_pb.setValue(0);
Const.java https://github.com/dbogdanovich/pentaho-kettle.git | Java | 2,980 lines
186   */
187  public static final Date MIN_DATE = new Date( -2208992400000L ); // 1900/01/01 00:00:00.000
188
191   */
192  public static final Date MAX_DATE = new Date( 7258114799468L ); // 2199/12/31 23:59:59.999
193
671   * to "Y", an string starting with digits will be converted successfully into a number. (example: 192.168.1.1 will be
672   * converted into 192 or 192.168 depending on the decimal symbol). The default (N) will be to throw an error if
673   * non-numeric symbols are found in the string.
1464      || os.equalsIgnoreCase( "Windows 2000" ) || os.equalsIgnoreCase( "Windows XP" )
1465      || os.equalsIgnoreCase( "Windows 95" ) || os.equalsIgnoreCase( "Windows 98" )
1466      || os.equalsIgnoreCase( "Windows Me" ) || os.startsWith( "Windows" ) ) {
2328      char c = name.charAt( i );
2329      if ( Character.isUnicodeIdentifierPart( c ) ) {
2330        filename.append( c );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21