/trunk/main/registry/source/ |
H A D | reflcnst.hxx | 112 buffer[0] = v; in writeBYTE() 119 v = buffer[0]; in readBYTE() 134 v = ((buffer[0] << 8) | (buffer[1] << 0)); in readINT16() 149 v = ((buffer[0] << 8) | (buffer[1] << 0)); in readUINT16() 167 (buffer[0] << 24) | in readINT32() 168 (buffer[1] << 16) | in readINT32() 169 (buffer[2] << 8) | in readINT32() 170 (buffer[3] << 0) in readINT32() 189 (buffer[0] << 24) | in readUINT32() 190 (buffer[1] << 16) | in readUINT32() [all …]
|
/trunk/main/binaryurp/source/ |
H A D | marshal.cxx | 82 OSL_ASSERT(buffer != 0); in writeString() 96 buffer->insert(buffer->end(), v.getStr(), v.getStr() + v.getLength()); in writeString() 172 write8(buffer, 0); in writeOid() 176 write16(buffer, idx); in writeOid() 185 write8(buffer, 0); in writeTid() 189 buffer, in writeTid() 193 write16(buffer, idx); in writeTid() 229 buffer, in writeValue() 234 buffer, in writeValue() 272 buffer, in writeValue() [all …]
|
/trunk/main/sal/osl/unx/ |
H A D | system.c | 55 buffer += nname; in getpwnam_r() 59 buffer += npasswd; in getpwnam_r() 63 buffer += nclass; in getpwnam_r() 67 buffer += ngecos; in getpwnam_r() 71 buffer += ndir; in getpwnam_r() 159 res = buffer; in localtime_r() 176 res = buffer; in gmtime_r() 207 buffer += nnamp; in getspnam_r() 256 buffer += nage; in getpwnam_r() 268 buffer += ndir; in getpwnam_r() [all …]
|
H A D | file_url.cxx | 222 rtl_uString_newFromStr_WithLength( &pProtocol, pTmp->buffer, 7 ); in osl_getSystemPathFromFileURL() 257 if( (sal_Unicode) '~' == pTmp->buffer[0] ) in osl_getSystemPathFromFileURL() 260 if( ( 1 == pTmp->length ) || ( (sal_Unicode)'/' == pTmp->buffer[1] ) ) in osl_getSystemPathFromFileURL() 334 if( (sal_Unicode) '~' == ustrSystemPath->buffer[0] ) in osl_getFileURLFromSystemPath() 373 …if( ((sal_Unicode) '/' == pTmp->buffer[nSrcIndex]) && ((sal_Unicode) '/' == pTmp->buffer[nIndex]) ) in osl_getFileURLFromSystemPath() 376 pTmp->buffer[++nIndex] = pTmp->buffer[nSrcIndex]; in osl_getFileURLFromSystemPath() 397 if( (sal_Unicode)'/' == (*pustrFileURL)->buffer[0] ) in osl_getFileURLFromSystemPath() 423 if (bAllowRelative || (UNICHAR_SLASH == temp->buffer[0])) in osl_getSystemPathFromFileURL_Ex() 834 if(!UnicodeToText( buffer, bufLen, ustrSystemPath->buffer, ustrSystemPath->length)) in FileURLToPath() 884 uniText, uniTextLen, buffer, bufLen, in UnicodeToText() [all …]
|
H A D | security.c | 542 buffer[0] = '\0'; in osl_psz_loginUser() 544 pszUserName, &result_buf, buffer, sizeof buffer, in osl_psz_loginUser() 556 "root", &result_buf, buffer, sizeof buffer, in osl_psz_loginUser() 582 char buffer[1024]; in osl_psz_loginUser() 584 buffer[0] = '\0'; in osl_psz_loginUser() 600 (getspnam_r("root", &spwdStruct, buffer, sizeof buffer) != NULL)) in osl_psz_loginUser() 665 sal_Char buffer[32]; in osl_psz_getUserIdent() local 673 nChr = snprintf(buffer, sizeof(buffer), "%u", pSecImpl->m_pPasswd.pw_uid); in osl_psz_getUserIdent() 743 char buffer[8192]; in osl_psz_getHomeDir() local 749 if ( 0 != getpwuid_r(getuid(), &pwd, buffer, sizeof(buffer), &ppwd ) ) in osl_psz_getHomeDir() [all …]
|
H A D | backtrace.c | 65 int backtrace( void **buffer, int max_frames ) in backtrace() argument 93 *(buffer++) = (void*)(fp->fr_savpc); in backtrace() 103 void backtrace_symbols_fd( void **buffer, int size, int fd ) in backtrace_symbols_fd() argument 151 int backtrace( void **buffer, int max_frames ) in backtrace() argument 165 *(buffer++) = (void *)fp->fr_savpc; in backtrace() 172 void backtrace_symbols_fd( void **buffer, int size, int fd ) in backtrace_symbols_fd() argument 230 int backtrace( void **buffer, int max_frames ) in backtrace() argument 250 *(buffer++) = (void *)fp->fr_savpc; in backtrace() 257 void backtrace_symbols_fd( void **buffer, int size, int fd ) in backtrace_symbols_fd() argument 304 int backtrace( void **buffer, int max_frames ) in backtrace() argument [all …]
|
/trunk/main/xmerge/java/pexcel/src/main/java/org/openoffice/xmerge/converter/xml/sxc/pexcel/records/formula/ |
H A D | TokenDecoder.java | 216 byte buffer[] = new byte[2]; in readNameToken() 217 buffer[0] = (byte) bis.read(); in readNameToken() 242 byte buffer[] = new byte[2]; in readCellRefToken() 271 buffer[0] = (byte) bis.read(); in read3DCellRefToken() 272 buffer[1] = (byte) bis.read(); in read3DCellRefToken() 274 buffer[0] = (byte) bis.read(); in read3DCellRefToken() 275 buffer[1] = (byte) bis.read(); in read3DCellRefToken() 308 buffer[0] = (byte) bis.read(); in read3DCellAreaRefToken() 309 buffer[1] = (byte) bis.read(); in read3DCellAreaRefToken() 311 buffer[0] = (byte) bis.read(); in read3DCellAreaRefToken() [all …]
|
/trunk/main/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ |
H A D | GSIWriter.java | 140 this.write(buffer.toString()); in writeData() 157 buffer.append(this.blockNr); in getSourceLine() 159 buffer.append(this.seperator); in getSourceLine() 162 buffer.append(this.seperator); in getSourceLine() 165 buffer.append(this.seperator); in getSourceLine() 166 buffer.append("int"); in getSourceLine() 168 buffer.append(this.seperator); in getSourceLine() 175 return buffer; in getSourceLine() 191 buffer.append(this.blockNr); in getTargetLine() 200 buffer.append("ext"); in getTargetLine() [all …]
|
/trunk/main/sal/inc/rtl/ |
H A D | ustring.hxx | 291 sal_Unicode& operator[]( int n ) { return pData->buffer[n]; } in operator []() 321 return rtl_ustr_compare_WithLength( pData->buffer, pData->length, in compareTo() 566 pData->buffer, asciiStr, asciiStrLength ); in equalsAsciiL() 711 pData->buffer + pData->length - asciiStrLength, in endsWithIgnoreAsciiCaseAsciiL() 922 pData->buffer, pData->length, str, len); in lastIndexOfAsciiL() 1125 return rtl_ustr_toBoolean( pData->buffer ); in toBoolean() 1136 return pData->buffer[0]; in toChar() 1150 return rtl_ustr_toInt32( pData->buffer, radix ); in toInt32() 1164 return rtl_ustr_toInt64( pData->buffer, radix ); in toInt64() 1177 return rtl_ustr_toFloat( pData->buffer ); in toFloat() [all …]
|
H A D | string.hxx | 244 sal_Char& operator[]( int n ) { return pData->buffer[n]; } in operator []() 246 const sal_Char& operator[]( int n ) const { return pData->buffer[n]; } in operator []() 261 const sal_Char * getStr() const SAL_THROW(()) { return pData->buffer; } in getStr() 277 return rtl_str_compare_WithLength( pData->buffer, pData->length, in compareTo() 441 return rtl_str_hashCode_WithLength( pData->buffer, pData->length ); in hashCode() 760 return rtl_str_toBoolean( pData->buffer ); in toBoolean() 771 return pData->buffer[0]; in toChar() 785 return rtl_str_toInt32( pData->buffer, radix ); in toInt32() 799 return rtl_str_toInt64( pData->buffer, radix ); in toInt64() 812 return rtl_str_toFloat( pData->buffer ); in toFloat() [all …]
|
/trunk/main/tools/bootstrp/ |
H A D | md5.cxx | 56 if (buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z')) in normalize_pe_image() 61 if ( buffer[PEHeaderOffset+0] == sal_uInt8('P') && in normalize_pe_image() 62 buffer[PEHeaderOffset+1] == sal_uInt8('E') && in normalize_pe_image() 63 buffer[PEHeaderOffset+2] == 0 && in normalize_pe_image() 64 buffer[PEHeaderOffset+3] == 0 ) in normalize_pe_image() 72 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+0] = 0; in normalize_pe_image() 73 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0; in normalize_pe_image() 108 sal_uInt8 buffer[BUFFER_SIZE]; in calc_md5_checksum() local 112 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) ) in calc_md5_checksum() 117 if (nBytesRead >= MINIMAL_SIZE && buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z') ) in calc_md5_checksum() [all …]
|
/trunk/main/writerfilter/source/resourcemodel/ |
H A D | util.cxx | 176 char buffer[256]; in propertysetToString() local 184 snprintf(buffer, sizeof(buffer), "%d", nValue); in propertysetToString() 185 sResult += buffer; in propertysetToString() 194 snprintf(buffer, sizeof(buffer), "%d", nValue); in propertysetToString() 195 sResult += buffer; in propertysetToString() 204 snprintf(buffer, sizeof(buffer), "%" SAL_PRIdINT32, nValue); in propertysetToString() 205 sResult += buffer; in propertysetToString() 214 snprintf(buffer, sizeof(buffer), "%f", nValue); in propertysetToString() 224 snprintf(buffer, sizeof(buffer), "%lf", nValue); in propertysetToString() 289 … snprintf(buffer, sizeof(buffer), "(%" SAL_PRIdINT32 ", %" SAL_PRIdINT32 ")", aPoint.X, in propertysetToString() [all …]
|
/trunk/main/sal/osl/os2/ |
H A D | file_url.cxx | 678 rtl_ustr_replaceChar( ustrSystemPath->buffer, '\\', '/' ); in osl_getFileURLFromSystemPath() 706 if( (sal_Unicode) '~' == ustrSystemPath->buffer[0] ) in osl_getFileURLFromSystemPath() 745 …if( ((sal_Unicode) '/' == pTmp->buffer[nSrcIndex]) && ((sal_Unicode) '/' == pTmp->buffer[nIndex]) ) in osl_getFileURLFromSystemPath() 748 pTmp->buffer[++nIndex] = pTmp->buffer[nSrcIndex]; in osl_getFileURLFromSystemPath() 769 if( (sal_Unicode)'/' == (*pustrFileURL)->buffer[0] ) in osl_getFileURLFromSystemPath() 950 rtl_uString_newFromStr_WithLength( &pProtocol, pTmp->buffer, 7 ); in osl_getSystemPathFromFileURL() 985 if( (sal_Unicode) '~' == pTmp->buffer[0] ) in osl_getSystemPathFromFileURL() 1038 || (UNICHAR_SLASH == temp->buffer[0]) in osl_getSystemPathFromFileURL_Ex() 1039 || (UNICHAR_COLON == temp->buffer[1] && UNICHAR_SLASH == temp->buffer[2])) in osl_getSystemPathFromFileURL_Ex() 1374 snprintf( szBuffer, sizeof(szBuffer), message, strFile->buffer ); in _osl_warnFile() [all …]
|
H A D | module.c | 55 char buffer[PATH_MAX]; in osl_loadModule() local 57 if (UnicodeToText(buffer, PATH_MAX, ustrTmp->buffer, ustrTmp->length)) in osl_loadModule() 73 char buffer[PATH_MAX]; in osl_loadAsciiModule() local 96 _makepath( buffer, drive, dir, fname, ext); in osl_loadAsciiModule() 99 debug_printf("osl_loadModule module %s", buffer); in osl_loadAsciiModule() 102 hModule = dlopen( buffer, RTLD_LOCAL); in osl_loadAsciiModule() 118 buffer, err); in osl_loadAsciiModule() 146 char buffer[PATH_MAX]; in osl_getModuleHandle() local 148 if (UnicodeToText(buffer, PATH_MAX, pModuleName->buffer, in osl_getModuleHandle() 151 rc = DosQueryModuleHandle(buffer, &hmod); in osl_getModuleHandle() [all …]
|
H A D | nlsupport.c | 93 static char * _compose_locale( rtl_Locale * pLocale, char * buffer, size_t n ) in _compose_locale() argument 105 pLocale->Language->buffer, pLocale->Language->length, in _compose_locale() 110 strcpy( buffer, pLanguage->buffer ); in _compose_locale() 123 pLocale->Country->buffer, pLocale->Country->length, in _compose_locale() 128 strcpy( buffer + offset++, "_" ); in _compose_locale() 129 strcpy( buffer + offset, pCountry->buffer ); in _compose_locale() 143 pLocale->Variant->buffer, pLocale->Variant->length, in _compose_locale() 148 strcpy( buffer + offset, pVariant->buffer ); in _compose_locale() 155 return buffer; in _compose_locale() 200 …t = rtl_locale_register( pLanguage->buffer, pCountry ? pCountry->buffer : c_locale + 1, pVariant … in _parse_locale()
|
/trunk/main/idlc/source/ |
H A D | options.cxx | 139 std::string buffer; in checkCommandFile() local 140 buffer.reserve(256); in checkCommandFile() 157 if (!buffer.empty()) in checkCommandFile() 160 if (!Options::checkArgument(rArgs, buffer.c_str(), buffer.size())) in checkCommandFile() 165 buffer.clear(); in checkCommandFile() 175 if (!buffer.empty()) in checkCommandFile() 178 if (!Options::checkArgument(rArgs, buffer.c_str(), buffer.size())) in checkCommandFile() 183 buffer.clear(); in checkCommandFile() 268 OStringBuffer buffer; in initOptions() local 291 buffer.append(' '); buffer.append(param); in initOptions() [all …]
|
/trunk/main/sal/workben/ |
H A D | tgetpwnam.cxx | 57 char buffer[256]; in workfunc1() local 66 getpwnam_r("hr", &stpwd, buffer, sizeof(buffer)); in workfunc1() 67 gethostbyname_r("blauwal", &sthostent, buffer, sizeof(buffer), &nerr); in workfunc1() 76 char buffer[256]; in workfunc2() local 85 getpwnam_r("mh", &stpwd, buffer, sizeof(buffer)); in workfunc2() 86 gethostbyname_r("hr-1242", &sthostent, buffer, sizeof(buffer), &nerr); in workfunc2() 98 char buffer[256]; in main() local 118 pres1 = getpwnam_r("hr", pwd, buffer, sizeof(buffer)); in main() 146 pres2 = getspnam_r("hr", spwd, buffer, sizeof(buffer)); in main() 185 pres3 = gethostbyname_r("blauwal", phostent, buffer, sizeof(buffer), h_errno); in main() [all …]
|
/trunk/main/crashrep/source/unx/ |
H A D | main.cxx | 164 char buffer[1024]; in fcopy() local 168 while ( 0 != (nBytes = fread( buffer, 1, sizeof(buffer), fpin )) ) in fcopy() 343 char buffer[2048]; in SendHTTPRequest() local 346 sprintf( buffer, in SendHTTPRequest() 370 if ( SOCKET_ERROR != send( s, buffer, strlen(buffer), 0 ) ) in SendHTTPRequest() 376 nBytes = fread( buffer, 1, sizeof(buffer), fp ); in SendHTTPRequest() 391 memset( buffer, 0, sizeof(buffer) ); in SendHTTPRequest() 392 success = SOCKET_ERROR != recv( s, buffer, sizeof(buffer), 0 ); in SendHTTPRequest() 405 memset( buffer, 0, sizeof(buffer) ); in SendHTTPRequest() 406 } while ( 0 < recv( s, buffer, sizeof(buffer), 0 ) ); in SendHTTPRequest() [all …]
|
/trunk/main/extensions/source/logging/ |
H A D | sysloghandler.cxx | 255 buffer.append( '<' ); in publish() 257 buffer.append( '>' ); in publish() 260 buffer.append( '1' ); in publish() 271 buffer.append( ' ' ); in publish() 279 buffer.append( ' ' ); in publish() 283 buffer.append( ' ' ); in publish() 293 buffer.append( ' ' ); in publish() 296 buffer.append( '-' ); in publish() 297 buffer.append( ' ' ); in publish() 300 buffer.append( '-' ); in publish() [all …]
|
/trunk/main/vcl/unx/generic/fontmanager/ |
H A D | helper.cxx | 261 unsigned char buffer[256]; in convertPfbToPfa() local 269 bEof = ((0 != rInFile.read( buffer, 6, nRead)) || (nRead != 6)); in convertPfbToPfa() 272 unsigned int nType = buffer[ 1 ]; in convertPfbToPfa() 273 unsigned int nBytesToRead = buffer[2] | buffer[3] << 8 | buffer[4] << 16 | buffer[5] << 24; in convertPfbToPfa() 274 if( buffer[0] != 0x80 ) // test for pfb magic number in convertPfbToPfa() 278 if( ! rInFile.read( buffer+6, 9, nRead ) && nRead == 9 && in convertPfbToPfa() 279 ( ! std::strncmp( (char*)buffer, "%!FontType1-", 12 ) || in convertPfbToPfa() 285 ! rInFile.read( buffer, sizeof( buffer ), nRead ) && in convertPfbToPfa() 288 if( rOutFile.write( buffer, nRead, nWrite ) || in convertPfbToPfa() 336 buffer[ nBuffer++ ] = '\n'; in convertPfbToPfa() [all …]
|
/trunk/main/filter/source/xsltfilter/com/sun/star/comp/xsltfilter/ |
H A D | Base64.java | 1025 byte[] buffer = new byte[2048]; in decode() 1036 baos.write(buffer,0,length); in decode() 1194 byte[] buffer = null; in decodeFromFile() 1204 buffer = new byte[ (int)file.length() ]; in decodeFromFile() 1302 byte[] buffer = new byte[65536]; // 64K in encodeFileToFile() 1305 out.write( buffer,0,read ); in encodeFileToFile() 1339 byte[] buffer = new byte[65536]; // 64K in decodeFileToFile() 1342 out.write( buffer,0,read ); in decodeFileToFile() 1533 int b = buffer[ position++ ]; in read() 1608 private byte[] buffer; field in Base64.OutputStream [all …]
|
/trunk/main/desktop/win32/source/ |
H A D | extendloaderenvironment.hxx | 39 WCHAR * buffer, WCHAR const * text, std::size_t length) in commandLineAppend() argument 41 wcsncpy(buffer, text, length + 1); // trailing null in commandLineAppend() 42 return buffer + length; in commandLineAppend() 45 inline WCHAR * commandLineAppend(WCHAR * buffer, WCHAR const * text) { in commandLineAppend() argument 46 return commandLineAppend(buffer, text, wcslen(text)); in commandLineAppend() 56 buffer = commandLineAppend(buffer, MY_STRING(L"\\$")); in commandLineAppendEncoded() 59 buffer = commandLineAppend(buffer, MY_STRING(L"\\\\")); in commandLineAppendEncoded() 62 *buffer++ = c; in commandLineAppendEncoded() 69 *buffer++ = L'\\'; in commandLineAppendEncoded() 71 *buffer = L'\0'; in commandLineAppendEncoded() [all …]
|
/trunk/main/bean/java/officebean/src/main/java/com/sun/star/beans/ |
H A D | LocalOfficeConnection.java | 391 buffer.delete(0, buffer.length()); in parseUnoUrlWithOfficePath() 400 buffer.delete(0, buffer.length()); in parseUnoUrlWithOfficePath() 401 buffer.append(ch); in parseUnoUrlWithOfficePath() 411 name = buffer.toString(); in parseUnoUrlWithOfficePath() 421 buffer.append(ch); in parseUnoUrlWithOfficePath() 447 buffer.delete(0, buffer.length()); in parseUnoUrlWithOfficePath() 448 buffer.append(ch); in parseUnoUrlWithOfficePath() 473 buffer.delete(0, buffer.length()); in parseUnoUrlWithOfficePath() 477 buffer.append(ch); in parseUnoUrlWithOfficePath() 507 buffer.delete(0, buffer.length()); in parseUnoUrlWithOfficePath() [all …]
|
/trunk/main/scripting/source/storage/ |
H A D | ScriptMetadataImporter.cxx | 214 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() 221 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() 228 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() 256 RTL_TEXTENCODING_ASCII_US ).pData->buffer, in startElement() 259 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() 278 RTL_TEXTENCODING_ASCII_US ).pData->buffer, in startElement() 281 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() 288 RTL_TEXTENCODING_ASCII_US).pData->buffer ); in startElement() 307 RTL_TEXTENCODING_ASCII_US ).pData->buffer, in startElement() 310 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in startElement() [all …]
|
H A D | ScriptStorage.cxx | 199 m_stringUri, RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in initialize() 300 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in create() 313 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in create() 513 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in updateMaps() 560 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in save() 726 RTL_TEXTENCODING_ASCII_US ).pData->buffer, in getImplementations() 728 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in getImplementations() 744 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in getImplementations() 757 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in getImplementations() 765 RTL_TEXTENCODING_ASCII_US ).pData->buffer ); in getImplementations() [all …]
|