/trunk/main/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/ |
H A D | DocumentSerializerImpl.java | 155 int len = list.getLength(); in serialize() local 156 if (len > 0) { in serialize() 186 int len = nodeList.getLength(); in traverseBody() local 188 for (int i = 0; i < len; i++) { in traverseBody() 384 int len = nodeList.getLength(); in traverseList() local 386 for (int i = 0; i < len; i++) { in traverseList() 429 int len = nodeList.getLength(); in traverseListHeader() local 431 for (int i = 0; i < len; i++) { in traverseListHeader() 476 int len = nodeList.getLength(); in traverseListItem() local 478 for (int i = 0; i < len; i++) { in traverseListItem() [all …]
|
/trunk/main/scripting/java/com/sun/star/script/framework/container/ |
H A D | ParcelDescriptor.java | 224 int len; in getScriptEntries() local 228 (len = scriptNodes.getLength()) == 0) in getScriptEntries() 231 for (int i = 0; i < len; i++) { in getScriptEntries() 319 int len; in initLanguageProperties() local 323 for (int i = 0; i < len; i++) { in initLanguageProperties() 347 int len; in clearEntries() local 350 (len = scriptNodes.getLength()) != 0) in clearEntries() 352 for (int i = len - 1; i >= 0; i--) { in clearEntries() 366 int len; in removeScriptEntry() local 369 (len = scriptNodes.getLength()) != 0) in removeScriptEntry() [all …]
|
/trunk/main/i18npool/source/textconversion/ |
H A D | textconversion_zh.cxx | 125 sal_Int32 len = nLength - currPos; in getWordConversion() local 127 if (len > maxLen) in getWordConversion() 128 len = maxLen; in getWordConversion() 129 for (; len > 0 && ! found; len--) { in getWordConversion() 130 OUString word = aText.copy(nStartPos + currPos, len); in getWordConversion() 136 conversions = xCDL->queryConversions(word, 0, len, in getWordConversion() 170 if (!found && index[len+1] - index[len] > 0) { in getWordConversion() 171 sal_Int32 bottom = (sal_Int32) index[len]; in getWordConversion() 172 sal_Int32 top = (sal_Int32) index[len+1] - 1; in getWordConversion()
|
H A D | textconversion_ko.cxx | 222 sal_Int32 len = 1; in getConversions() local 244 …result.Candidates = getCharConversions(aText, nStartPos + start, len, toHanja); // char2char conve… in getConversions() 250 for (len = end - start; len > 0; len--) { in getConversions() 251 if (len > 1) { in getConversions() 254 … result.Candidates = xCDL->queryConversions(aText, start + nStartPos, len, in getConversions() 268 … candidates = xCD->getConversions(aText, start + nStartPos, len, eDirection, nConversionOptions); in getConversions() 274 len = result.Candidates[0].getLength(); in getConversions() 283 result.Boundary.endPos = start + len + nStartPos; in getConversions()
|
/trunk/main/i18npool/source/breakiterator/ |
H A D | breakiterator_unicode.cxx | 290 sal_Int32 len = Text.getLength(); in getWordBoundary() local 294 if((bDirection || nPos == 0) && nPos < len) //forward in getWordBoundary() 301 result.endPos = len ? word.aBreakIterator->following((sal_Int32)0) : 0; in getWordBoundary() 302 } else if(nPos >= len) { in getWordBoundary() 303 result.startPos = word.aBreakIterator->preceding(len); in getWordBoundary() 304 result.endPos = len; in getWordBoundary() 324 sal_Int32 len = Text.getLength(); in beginOfSentence() local 325 if (len > 0 && nStartPos == len) in beginOfSentence() 332 while (nStartPos < len && u_isWhitespace(ch)) ch = Text.iterateCodePoints(&nStartPos, 1); in beginOfSentence() 343 sal_Int32 len = Text.getLength(); in endOfSentence() local [all …]
|
/trunk/main/xmerge/java/pocketword/src/main/java/org/openoffice/xmerge/converter/xml/sxw/pocketword/ |
H A D | DocumentSerializerImpl.java | 107 int len = list.getLength(); in serialize() local 108 if (len > 0) { in serialize() 182 int len = nList.getLength(); in traverseBody() local 184 for (int i = 0; i < len; i++) { in traverseBody() 257 int len = nList.getLength(); in traverseParagraphContents() local 259 for (int i = 0; i < len; i++) { in traverseParagraphContents() 368 int len = nList.getLength(); in traverseList() local 370 for (int i = 0; i < len; i++) { in traverseList() 396 int len = nList.getLength(); in traverseListItem() local 398 for (int i = 0; i < len; i++) { in traverseListItem()
|
/trunk/main/vcl/source/fontsubset/ |
H A D | ttcr.cxx | 635 *len = TABLESIZE_head; in GetRawData_head() 644 *len = TABLESIZE_hhea; in GetRawData_hhea() 662 *len = p->nbytes; in GetRawData_loca() 670 *len = TABLESIZE_maxp; in GetRawData_maxp() 685 *len = 0; in GetRawData_glyf() 707 *len = nbytes; in GetRawData_glyf() 820 *len = cmapsize; in GetRawData_cmap() 835 *len = 0; in GetRawData_name() 888 *len = (sal_uInt16)nameLen; in GetRawData_name() 920 *len = postLen; in GetRawData_post() [all …]
|
/trunk/main/filter/source/config/tools/merge/ |
H A D | pyAltFCFGMerge | 93 return '\\u' + '0' * (4 - len(h)) + h 134 for i in range(len(line)): 145 if i == len(line) - 1: 236 while i < len(line): 351 if sPropFile != None and len(sPropFile) > 0: 357 count = len(lCommandLineArgs) 420 (sToken.rfind("\"") == len(sToken)-1)): 421 sToken = sToken[1, len(sToken)-1] 540 format(f=len(lFragments),setname=sSetName,subdir=sSubDir)) 542 nItemCount = nItemCount + len(lFragments) [all …]
|
/trunk/main/tools/source/generic/ |
H A D | bigint.cxx | 184 char len; in AddLong() local 190 len = nLen; in AddLong() 196 len = rB.nLen; in AddLong() 197 for (i = nLen; i < len; i++) in AddLong() 217 len++; in AddLong() 220 rErg.nLen = len; in AddLong() 247 char len; in SubLong() local 254 len = nLen; in SubLong() 260 len = rB.nLen; in SubLong() 261 for (i = nLen; i < len; i++) in SubLong() [all …]
|
/trunk/main/desktop/win32/source/rebase/ |
H A D | rebase.cxx | 116 size_t len = lpLastSlash - pszFolder + 1; in rebaseImagesInFolder() local 117 wcsncpy( szPattern, pszFolder, len ); in rebaseImagesInFolder() 118 wcsncpy( szPattern + len, TEXT("*.dll"), sizeof(szPattern)/sizeof(szPattern[0]) - len ); in rebaseImagesInFolder() 134 size_t len = lpLastSlash - pszFolder + 1; in rebaseImagesInFolder() local 135 wcsncpy( szLibFilePath, pszFolder, len ); in rebaseImagesInFolder() 136 …wcsncpy( szLibFilePath + len, aFindFileData.cFileName, sizeof(szLibFilePath)/sizeof(szLibFilePath[… in rebaseImagesInFolder()
|
/trunk/main/connectivity/java/sdbc_jdbc/src/com/sun/star/comp/sdbc/ |
H A D | ReaderInputStream.java | 58 public int read(byte[] b, int off, int len) throws IOException { in read() argument 59 if ((off < 0) || (len < 0) || (off + len > b.length)) { in read() 61 } else if (len == 0) { in read() 63 } else if (len == 1) { in read() 71 int charCount = len / 2; in read() 77 int byteLength = len & ~1; in read()
|
/trunk/main/sal/osl/unx/ |
H A D | pipe.c | 165 size_t len; in osl_psz_createPipe() local 228 len = SUN_LEN(&addr); in osl_psz_createPipe() 230 len = sizeof(addr); in osl_psz_createPipe() 241 if ( connect(pPipe->m_Socket,(struct sockaddr *)&addr,len) >= 0 ) in osl_psz_createPipe() 253 if ( bind(pPipe->m_Socket, (struct sockaddr *)&addr, len) < 0 ) in osl_psz_createPipe() 285 if ( connect( pPipe->m_Socket, (struct sockaddr *)&addr, len) >= 0 ) in osl_psz_createPipe() 323 size_t len; in osl_closePipe() local 358 len = SUN_LEN(&addr); in osl_closePipe() 360 len = sizeof(addr); in osl_closePipe() 363 nRet = connect( fd, (struct sockaddr *)&addr, len); in osl_closePipe()
|
/trunk/main/scripting/java/org/openoffice/netbeans/editor/ |
H A D | JavaKit.java | 141 public void append(byte[] buffer, int off, int len) in append() argument 159 public void read(byte[] buffer, int off, int len) throws IOException { in read() argument 161 while (len > 0) { in read() 162 int count = str.read(buffer, off, len); in read() 165 len -= count; in read() 223 long len = stream.skip(off - streamOff); in getStream() local 224 streamOff += (int)len; in getStream() 225 if (len == 0) throw new IOException("EOF"); in getStream()
|
/trunk/test/testcommon/source/org/openoffice/test/vcl/client/ |
H A D | CommunicationManager.java | 110 int len = 1 + 2 + 2 + header.length + data.length; in sendPackage() local 112 os.writeInt(len); in sendPackage() 114 os.writeByte(calcCheckByte(len)); in sendPackage() 137 int len = is.readInt(); in run() local 138 if (len == 0xFFFFFFFF) in run() 139 len = is.readInt(); in run() 142 if (calcCheckByte(len) != checkByte) in run() 149 byte[] data = new byte[len - headerLen - 3]; in run()
|
/trunk/main/registry/tools/ |
H A D | options.cxx | 44 bool Options::checkArgument(std::vector< std::string> & rArgs, char const * arg, size_t len) in checkArgument() argument 46 bool result = ((arg != 0) && (len > 0)); in checkArgument() 54 if ((result = (len > 1)) == true) in checkArgument() 61 if ((result = (len > 1)) == true) in checkArgument() 66 if (len > 2) in checkArgument() 69 std::string param(&(arg[2]), len - 2); in checkArgument() 75 rArgs.push_back(std::string(arg, len)); in checkArgument()
|
/trunk/main/soltools/cpp/ |
H A D | _lex.c | 405 tp->len = ip - tp->t; in gettokens() 411 tp->len = ip - tp->t; in gettokens() 493 tp->len = 0; in gettokens() 505 tp->len = 1; in gettokens() 547 tp->len = ip - tp->t; in gettokens() 658 int len; in setsource() local 677 len = strlen(str); in setsource() 678 s->inb = domalloc(len + 4); in setsource() 680 strncpy((char *) s->inp, str, len); in setsource() 686 len = 0; in setsource() [all …]
|
/trunk/main/soltools/testSHL/util/ |
H A D | tutil.cxx | 77 sal_uInt32 len = byteSeq.getLength(); in getEntriesFromFile() local 79 sal_Char* pEnt = new sal_Char[ len+1 ]; in getEntriesFromFile() 81 for ( i=0; i<len; i++ ) { in getEntriesFromFile() 84 pEnt[len] = '\0'; in getEntriesFromFile() 132 sal_uInt32 len = 0; in ln() local 136 while( *ptr++ ) len++; in ln() 139 return(len); in ln()
|
/trunk/main/sal/qa/rtl_strings/ |
H A D | rtl_String_Utils.cxx | 92 sal_uInt32 len = cnt; in cpynstr() local 95 if ( len >= AStringLen(src) ) in cpynstr() 101 for( i = 0; i < len; i++ ) in cpynstr() 109 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ) in cmpstr() argument 115 while ( (*pBuf1 == *pBuf2) && i < len ) in cmpstr() 121 return( i == len ); in cmpstr() 124 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len ) in cmpustr() argument 130 while ( (*pBuf1 == *pBuf2) && i < len ) in cmpustr() 136 return( i == len ); in cmpustr()
|
/trunk/main/sal/qa/OStringBuffer/ |
H A D | rtl_String_Utils.cxx | 96 sal_uInt32 len = cnt; in cpynstr() local 99 if ( len >= AStringLen(src) ) in cpynstr() 105 for( i = 0; i < len; i++ ) in cpynstr() 113 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ) in cmpstr() argument 119 while ( (*pBuf1 == *pBuf2) && i < len ) in cmpstr() 125 return( i == len ); in cmpstr() 146 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len ) in cmpustr() argument 152 while ( (*pBuf1 == *pBuf2) && i < len ) in cmpustr() 158 return( i == len ); in cmpustr()
|
/trunk/main/jurt/java/jurt/src/main/java/com/sun/star/lib/uno/protocols/urp/ |
H A D | Unmarshal.java | 89 int len = readCompressedNumber(); in readThreadId() local 92 if (len != 0) { in readThreadId() 93 data = new byte[len]; in readThreadId() 99 if (len == 0) { in readThreadId() 273 int len = readCompressedNumber(); in readStringValue() local 274 byte[] data = new byte[len]; in readStringValue() 382 int len = readCompressedNumber(); in readSequenceValue() local 385 byte[] data = new byte[len]; in readSequenceValue() 391 ? Object.class : ctype.getZClass(), len); in readSequenceValue() 392 for (int i = 0; i < len; ++i) { in readSequenceValue()
|
/trunk/main/scripting/source/pyprov/ |
H A D | pythonscript.py | 85 if len( userInstallation ) > 0: 213 storageURI[len(self.m_baseUri)+1:].replace("/","|") + \ 376 pos = len( self.rootUrl) +1 377 ret = url[0:pos]+url[url.find("/",pos)+1:len(url)] 384 pos = len(self.rootUrl)+1 615 return len(self.getChildNodes()) > 0 816 if len( pathes ) > 0: 828 return aStr[ aStr.rfind( "/" )+1:len(aStr)] 843 if len( i[1].pathes ) == 1: 853 return len( self.mapPackageName2Path ) > 0 [all …]
|
/trunk/main/i18npool/source/indexentry/ |
H A D | indexentrysupplier_default.cxx | 138 sal_Int32 len = keys[mkeys[i]].mkey.getLength(); in getIndexWeight() local 139 if (collator->compareSubstring(rIndexEntry, startPos, len, in getIndexWeight() 140 keys[mkeys[i]].mkey, 0, len) == 0) in getIndexWeight() 181 sal_Int16 len = sal::static_int_cast<sal_Int16>( keyStr.getLength() ); in makeIndexKeys() local 186 for (i = 0; i < len && key_count < MAX_KEYS; i++) in makeIndexKeys() 196 if (key_count > 0 && i + 1 < len ) { in makeIndexKeys() 205 for (i++; i < len && keyStr[i] != sal_Unicode(']'); i++) { in makeIndexKeys() 222 for (end=i+1; end < len && keyStr[end] != close; end++) ; in makeIndexKeys() 224 if (end >= len) // no found in makeIndexKeys()
|
H A D | genindex_data.cxx | 64 sal_Int32 len = strlen(str) - 1; in SAL_IMPLEMENT_MAIN_WITH_ARGS() local 66 if (len == 0 || str[0] == '#') in SAL_IMPLEMENT_MAIN_WITH_ARGS() 70 OUString Ostr = OUString((const sal_Char *)str, len, RTL_TEXTENCODING_UTF8); in SAL_IMPLEMENT_MAIN_WITH_ARGS() 71 len = Ostr.getLength(); in SAL_IMPLEMENT_MAIN_WITH_ARGS() 72 if (len == 0) in SAL_IMPLEMENT_MAIN_WITH_ARGS() 128 sal_Int32 len=result.getLength(); in SAL_IMPLEMENT_MAIN_WITH_ARGS() local 150 for (i = k = 0; i < len; i++) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
|
/trunk/main/bridges/source/jni_uno/ |
H A D | jni_bridge.cxx | 336 jsize len = m_env->GetStringLength( (jstring) jo_descr.get() ); in java_exc_occured() local 339 sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ) ); in java_exc_occured() 341 m_env->GetStringRegion( (jstring) jo_descr.get(), 0, len, ustr->buffer ); in java_exc_occured() 349 ustr->length = len; in java_exc_occured() 350 ustr->buffer[ len ] = '\0'; in java_exc_occured() 411 jsize len = in get_stack_trace() local 415 sizeof (rtl_uString) + (len * sizeof (sal_Unicode)) ) ); in get_stack_trace() 418 (jstring) jo_stack_trace.get(), 0, len, ustr->buffer ); in get_stack_trace() 422 ustr->length = len; in get_stack_trace() 423 ustr->buffer[ len ] = '\0'; in get_stack_trace()
|
/trunk/main/setup_native/source/win32/customactions/reg4msdoc/ |
H A D | stringconverter.cxx | 40 int len = WideCharToMultiByte( in UnicodeToAnsiString() local 43 char* buff = reinterpret_cast<char*>(_alloca(len)); in UnicodeToAnsiString() 46 CP_ACP, 0, UniString.c_str(), -1, buff, len, 0, 0); in UnicodeToAnsiString() 55 int len = MultiByteToWideChar( in AnsiToUnicodeString() local 58 wchar_t* buff = reinterpret_cast<wchar_t*>(_alloca(len * sizeof(wchar_t))); in AnsiToUnicodeString() 61 CP_ACP, 0, AnsiString.c_str(), -1, buff, len); in AnsiToUnicodeString()
|