*
* OpenXLS is free software: you can redistribute it and/or modify
* You should have received a copy of the GNU Lesser General Public
* License along with OpenXLS. If not, see
import com.extentech.formats.XLS.BiffRec;
CELL(info_type, [reference])
info_type Required. A text value that specifies what type of cell information you want to return. The following list shows the possible values of the info_type argument and the corresponding results.info_type Returns
"col" Column number of the cell in reference.
"color" The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero).
"contents" Value of the upper-left cell in reference; not a formula.
"filename" Filename (including full path) of the file that contains reference, as text. Returns empty text ("") if the worksheet that contains reference has not yet been saved.
"format" Text value corresponding to the number format of the cell. The text values for the various formats are shown in the following table. Returns "-" at the end of the text value if the cell is formatted in color for negative values. Returns "()" at the end of the text value if the cell is formatted with parentheses for positive or all values.
"parentheses" The value 1 if the cell is formatted with parentheses for positive or all values; otherwise returns 0.
"prefix" Text value corresponding to the "label prefix" of the cell. Returns single quotation mark (') if the cell contains left-aligned text, double quotation mark (") if the cell contains right-aligned text, caret (^) if the cell contains centered text, backslash (\) if the cell contains fill-aligned text, and empty text ("") if the cell contains anything else.
/* Validate command-line arguments. */
if (args.length != 1 || !new File(args[0]).exists()) {
String filename = file.getName();
if (file.isDirectory()) {
files.addAll(Arrays.asList(file.listFiles()));
} else if (path.contains("statuses")) {
statuses.put(filename, file);
} else if (path.contains("server-descriptors")) {
serverDescriptors.put(filename, file);
} else if (path.contains("extra-infos")) {
/* Parse statuses. */
if (!statuses.isEmpty()) {
/* Parse server descriptors and extra-info descriptors. */
if (!serverDescriptors.isEmpty()) {
while ((line = br.readLine()) != null) {
if (line.startsWith("opt ")) {
*
* OpenXLS is free software: you can redistribute it and/or modify
* You should have received a copy of the GNU Lesser General Public
* License along with OpenXLS. If not, see
import com.extentech.formats.XLS.BiffRec;
CELL(info_type, [reference])
info_type Required. A text value that specifies what type of cell information you want to return. The following list shows the possible values of the info_type argument and the corresponding results.info_type Returns
"col" Column number of the cell in reference.
"color" The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero).
"contents" Value of the upper-left cell in reference; not a formula.
"filename" Filename (including full path) of the file that contains reference, as text. Returns empty text ("") if the worksheet that contains reference has not yet been saved.
"format" Text value corresponding to the number format of the cell. The text values for the various formats are shown in the following table. Returns "-" at the end of the text value if the cell is formatted in color for negative values. Returns "()" at the end of the text value if the cell is formatted with parentheses for positive or all values.
"parentheses" The value 1 if the cell is formatted with parentheses for positive or all values; otherwise returns 0.
"prefix" Text value corresponding to the "label prefix" of the cell. Returns single quotation mark (') if the cell contains left-aligned text, double quotation mark (") if the cell contains right-aligned text, caret (^) if the cell contains centered text, backslash (\) if the cell contains fill-aligned text, and empty text ("") if the cell contains anything else.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* along with this program in the file lgpl21.txt
* If not, see <http://www.gnu.org/licenses/>.
import net.yacy.cora.document.id.DigestURL;
import net.yacy.cora.protocol.ClientIdentification;
// ah, we are lucky, we got a character-encoding via HTTP-header
if (documentCharset != null) {
encoding = encoding.toUpperCase();
if (encoding.startsWith("SHIFT")) return "Shift_JIS";
if (encoding.startsWith("BIG")) return "Big5";
// all other names but such with "windows" use uppercase
if (encoding.startsWith("WINDOWS")) encoding = "windows" + encoding.substring(7);
if (encoding.startsWith("MACINTOSH")) encoding = "MacRoman";
//
// 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, write to the Free Software
// constants for system identification
// constants for file type identification (Mac only)
else if (sysname.startsWith("mac os")) systemOS = System.MacOSC;
else if (sysname.startsWith("windows")) systemOS = System.Windows;
else if ((sysname.startsWith("linux")) || (sysname.startsWith("unix"))) systemOS = System.Unix;
String s = "System=";
if (systemOS == System.Unknown) s += "unknown";
else if (systemOS == System.MacOSC) s += "Mac OS Classic";
else if (systemOS == System.MacOSX) s += "Mac OS X";
else if (systemOS == System.Unix) s += "Unix/Linux";
//
// 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/>
#if DEBUG
packbox.Checked = false; // Create wad - default OFF
localuse.Checked = true; // Use local content if already downloaded - default ON
if (args.Length < 2)
Console.WriteLine(" packwad = A wad file will be generated");
Console.WriteLine(" localuse = Use local contents if available");
// Second command line argument is ALWAYS the TitleVersion.
// User may specify a "*" to retrieve the latest version
if (args[i] == "*")
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
srcTable = srcTable.trim();
if (!srcTable.isEmpty()) {
}
if (srcTables.isEmpty()) {
public boolean deleteDirectory(File path) {
if (path.exists()) {
for (File file : files) {
if (file.isDirectory()) {
FileSystem destFs = dest.getFileSystem(conf);
if (srcFs.exists(src)) {
// If this is a source table we do not copy it out
if (srcTables.contains(name)) {
var version2 = (string)ds2.Tables[0].Rows[0][0];
if (version2 == "SQL Azure")
var match = regEx.Match(sql);
if (match != null && match.Groups != null && match.Groups.Count == 2)
//This is FAR from perfect. It assumes the creation line ends with the "AS" keyword for a stored proc
if (inBody)
}
else if (!inBody && (lineText.ToLower().Trim().EndsWith(" as") || lineText.ToLower().Trim() == "as"))
var sb = new StringBuilder();
sb.AppendLine("select o.*, s.name as schemaname from sys.objects o inner join sys.schemas s on o.schema_id = s.schema_id WHERE [type] IN ('FN', 'IF', 'TF') and o.name <> 'fn_diagramobjects'");
{
if (parameter.DataType == SqlDbType.UniqueIdentifier)
sb.Append("@" + parameter.Name + "='540C6D43-5645-40FB-980F-2FF126BFBD5E'");
else if (parameter.IsTextType())
sb.Append("@" + parameter.Name + "=''");
else if (parameter.IsNumericType())
// to deal in the Software without restriction, including without limitation *
// the rights to use, copy, modify, merge, publish, distribute, sublicense, *
sb.AppendLine(" INNER JOIN systypes s on s.name = c.DATA_TYPE");
if (!string.IsNullOrEmpty(tableName))
var match = regEx.Match(sql);
if (match != null && match.Groups != null && match.Groups.Count == 2)
//This is FAR from perfect. It assumes the creation line ends with the "AS" keyword for a stored proc
if (inBody)
}
else if (!inBody && (lineText.ToLower().Trim().EndsWith(" as") || lineText.ToLower().Trim() == "as"))
var sb = new StringBuilder();
sb.AppendLine("select o.*, s.name as schemaname from sys.objects o inner join sys.schemas s on o.schema_id = s.schema_id WHERE [type] IN ('FN', 'IF', 'TF') and o.name <> 'fn_diagramobjects'");
{
if (parameter.DataType == SqlDbType.UniqueIdentifier)
sb.Append("@" + parameter.Name + "='540C6D43-5645-40FB-980F-2FF126BFBD5E'");
else if (parameter.IsTextType())
*
* 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
if (debugLevel != null && !debugLevel.equals("false")) {
logger = PlatformLogger.getLogger("sun.java2d");
if (debugLevel.equals("warning")) {
logger.setLevel(PlatformLogger.WARNING);
if (debugFonts) {
*
* 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* 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) {
* 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);
}*/
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
#ifdef Q_WS_WIN
# include <QEventLoop>
#endif /* Q_WS_WIN */
#ifdef Q_WS_X11
# include <QX11Info>
#endif /* Q_WS_X11 */
#ifdef VBOX_GUI_WITH_PIDFILE
# include <QTextStream>
#endif /* VBOX_GUI_WITH_PIDFILE */
#include "UIExtraDataEventHandler.h"
#include "QIFileDialog.h"
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
if (!create) {
if (uriStatMap.size() >= this.getMaxStatUriCount()) {
if (fullCount == 0) {
if (uriStat == null) {
uriStatMap.putIfAbsent(uri, new WebURIStat(uri));
uriStat = uriStatMap.get(uri);
if (sessionStat == null) {
if (uriStat == null) {
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
TclObject patternObj;
if( arg.startsWith("-") ) {
TclObject tclCode = null;
if( i + 1 < argv.length ) {
try {
if( arg.startsWith("-re") ) {
pair = new RegExpMatch(pattern, closure);
} else if ( arg.startsWith("-ex") )
throw new TclException(interp, "Exact matches not supported yet");
String arg = argv[1].toString();
if( arg.equals("1") )
setExpDebug(interp, true);
else if( arg.equals("0") )
return OS.FREEBSD;
} else if (osName.startsWith("windows")) {
String archString = System.getProperty("os.arch").toLowerCase();
if ("x86".equals(archString) || "i386".equals(archString) || "i86pc".equals(archString)) {
return CPU.I386;
} else if ("x86_64".equals(archString) || "amd64".equals(archString)) {
return CPU.X86_64;
} else if ("ppc".equals(archString) || "powerpc".equals(archString)) {
int dataModel = Integer.getInteger("sun.arch.data.model");
if (dataModel != 32 && dataModel != 64) {
/**
* Maps from a generic library name (e.g. "c") to the platform specific library name.
//
// A specific version was requested - use as is for search
//
if (libPattern.matcher(libName).find()) {
*
* 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
String commandLineClassName = "ClassA" + commandLineClassNameSuffix;
String manifestClassName;
if (hasUnicodeFileSystem()) {
manifestClassName = "ClassB" + unicode;
} else {
manifestClassName = "ClassB" + commandLineClassNameSuffix;
generateSource(commandLineClassName, manifestClassName);
generateSource(manifestClassName, commandLineClassName);
# Linux, Unix and MacOS:
if hasattr(os, "sysconf"):
if "SC_NPROCESSORS_ONLN" in os.sysconf_names:
# Linux & Unix:
ncpus = os.sysconf("SC_NPROCESSORS_ONLN")
if isinstance(ncpus, int) and ncpus > 0:
# Windows:
if "NUMBER_OF_PROCESSORS" in os.environ:
ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]);
if ncpus > 0:
text = getoutput("cl.exe")
if 'Version 13' in text:
return '71'
for dep in dylibs:
if buildDir is not None:
{
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()) {
const QString binary = env.searchInPath(QLatin1String("cl.exe"));
if (binary.isEmpty()) {