**
** If you have questions regarding the use of this file, please contact
{
if (t == MsvcToolChain::WindowsSDK) {
const QByteArray macro(macros[i]);
file += "#if defined(" + macro + ")\n__PPOUT__("
+ macro + ")\n#endif\n";
}
foreach (const QString &arg, cxxflags) {
if (arg.startsWith(QLatin1String("/D"))) {
int pos = define.indexOf(QLatin1Char('='));
if (pos < 0) {
}
} else if (arg.startsWith(QLatin1String("/U"))) {
saver.write(msvcCompilationFile());
if (!saver.finalize()) {
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* This class maintains key-value pairs of Kerberos configurable constants
* from configuration file or from user specified system properties.
*
* @exception KrbException if error occurs when constructing a Config
* found, either of java.security.krb5.realm or java.security.krb5.kdc
* not specified, error reading configuration file.
}
if (kdchost != null) {
WikiHtmlViewWK = None
if wx.version().startswith(("2.9", "3")):
elif WikiHtmlViewWK and pvRenderer == 3:
"""
Informs the widget if it is really visible on the screen or not
"""
if not self.visible and vis:
if not vis:
if isWindows():
def OnOpeningURL(self, typ, url):
if url.startswith("file:"):
if self._RE_RIGHT_FILE_URL.match(url):
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
// Test hosts used by the channels tests - change these when
// executing in a different network.
static boolean onME() {
if (osName.startsWith("Windows")) {
if (osName.indexOf("9") > 0)
return true;
static boolean onWindows() {
return osName.startsWith("Windows");
-----------------------------------------------------------------------------
This library is free software; you can redistribute it and/or modify it
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
/**
* Removes from the start of a string any of the specified characters.
{
if ( text == null ) return text;
while ( n < text.length() ) {
if ( chars.indexOf(text.charAt(n)) == -1 ) {
}
if ( n >= text.length() ) return "";
if ( n > 0 ) return text.substring(n);
return text;
/**
* Removes from the end of a string any of the specified characters.
val text = myText.text.trim
if (selectedTL != null && !text.isEmpty) {
if (text.length > 140) {
try {
if (selectedTL != null) {
if (tabIdx == 1) {
Megane.mgTwitter.retweet(selectedTL.id)
updateTLInfo(selectedTL.id, selectedTL.copy(relation="RT"))
} else if (tabIdx == 2) {
updateReplyInfo(selectedTL.id, selectedTL.copy(relation="RT"))
} else if (tabIdx == 3) {
try {
if (selectedTL != null) {
if (tabIdx == 3) {
Dialog.showMessage(title="ERROR", message="??????????????????")
-----------------------------------------------------------------------------
This library is free software; you can redistribute it and/or modify it
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
/**
* Removes from the start of a string any of the specified characters.
{
if ( text == null ) return text;
while ( n < text.length() ) {
if ( chars.indexOf(text.charAt(n)) == -1 ) {
}
if ( n >= text.length() ) return "";
if ( n > 0 ) return text.substring(n);
return text;
/**
* Removes from the end of a string any of the specified characters.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
public MD5 () {
if (native_lib_init_pending) _initNativeLibrary();
private void Decode (byte buffer[], int shift, int[] out) {
/*len += shift;
for (int i = 0; shift < len; i++, shift += 4) {
out[i] = ((int) (buffer[shift] & 0xff)) |
(((int) (buffer[shift + 1] & 0xff)) << 8) |
(((int) (buffer[shift + 2] & 0xff)) << 16) |
(((int) buffer[shift + 3]) << 24);
}*/
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be
* redistributed or modified in any form without restrictions as long as the portion of this
* comment from this paragraph through the end of the comment is not removed. The author
}
} else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
* PSXperia Converter Tool - Logging
* Copyright (C) 2011 Yifan Lu (http://yifan.lu/)
*
* This program is free software: you can redistribute it and/or modify
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
package com.yifanlu.PSXperiaTool;
import java.security.*;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.Arrays;
aaptTool = new File("./aapt-osx");
else if(os.startsWith("Windows"))
aaptTool = new File("./aapt-windows.exe");
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
String remainingHeader = state.getRemaining();
if (remainingHeader.startsWith("Machintosh"))
}
else if (remainingHeader.startsWith("Windows NT"))
}
else if (remainingHeader.startsWith("Windows 95"))
{
}
else if (remainingHeader.startsWith("Windows 98; Win 9x 4.90"))
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be
* redistributed or modified in any form without restrictions as long as the portion of this
* comment from this paragraph through the end of the comment is not removed. The author
}
} else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be
* redistributed or modified in any form without restrictions as long as the portion of this
* comment from this paragraph through the end of the comment is not removed. The author
}
} else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
/*
* This library is free software; you can redistribute it and/or modify it under
/** Provide simplified platform information. */
public final class Platform {
public static final int UNSPECIFIED = -1;
public static final boolean HAS_BUFFERS;
/** Whether this platform provides the AWT Component class; also false if
String osName = System.getProperty("os.name");
if (osName.startsWith("Linux")) {
if ("dalvik".equals(System.getProperty("java.vm.name").toLowerCase())) {
}
else if (osName.startsWith("Windows CE")) {
}
else if (osName.startsWith("Windows")) {
if (!string.IsNullOrEmpty(companyName))
root.CompanyName = companyName;
if (!string.IsNullOrEmpty(projectName))
root.ProjectName = projectName;
if (!string.IsNullOrEmpty(databaseName))
{
if (!IsValidConnectionString(connectionString))
if (!IsSupportedSQLVersion(connectionString))
//if (!string.IsNullOrEmpty(companyName))
// root.CompanyName = companyName;
//if (!string.IsNullOrEmpty(projectName))
// root.ProjectName = projectName;
if (!string.IsNullOrEmpty(companyName))
root.CompanyName = companyName;
if (!string.IsNullOrEmpty(projectName))
root.ProjectName = projectName;
if (!string.IsNullOrEmpty(databaseName))
{
if (!IsValidConnectionString(connectionString))
if (!IsSupportedSQLVersion(connectionString))
//if (!string.IsNullOrEmpty(companyName))
// root.CompanyName = companyName;
//if (!string.IsNullOrEmpty(projectName))
// root.ProjectName = projectName;
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
double version = Double.valueOf(majorMRJVersion).doubleValue();
if (version == 2) {
jvm = MRJ_2_0;
}
} else if (osName.startsWith("Windows")) {
if (osName.contains("9")) {
jvm = WINDOWS_9x;
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be
* redistributed or modified in any form without restrictions as long as the portion of this
* comment from this paragraph through the end of the comment is not removed. The author
}
} else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on
* do, though, is to take something that's frequently desirable but inherently
* platform-specific -- opening a default browser -- and allow programmers (you,
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant
* systems without modification or a need for additional libraries. All classes
* that are required on certain platforms to allow this to run are dynamically
* loaded at runtime via reflection and, if not found, will not cause this to do
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu)
* and may be redistributed or modified in any form without restrictions as long
* as the portion of this comment from this paragraph through the end of the
}
} else if (osName.startsWith("Windows"))
{
if (osName.indexOf("9") != -1)
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
* This code is Copyright 1999-2001 by Eric Albert (ejalbert@cs.stanford.edu) and may be
* redistributed or modified in any form without restrictions as long as the portion of this
* comment from this paragraph through the end of the comment is not removed. The author
}
} else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;