/trunk/main/sal/rtl/source/ |
H A D | ustrbuf.c | 113 if( len != 0 ) in rtl_uStringbuffer_insert() 134 if( len == 1 ) in rtl_uStringbuffer_insert() 137 else if( len > 1 ) in rtl_uStringbuffer_insert() 139 (*This)->length = nOldLen + len; in rtl_uStringbuffer_insert() 140 pBuf[ nOldLen + len ] = 0; in rtl_uStringbuffer_insert() 148 sal_Int32 len; in rtl_uStringbuffer_insertUtf32() local 152 len = 1; in rtl_uStringbuffer_insertUtf32() 157 len = 2; in rtl_uStringbuffer_insertUtf32() 174 if( len != 0 ) in rtl_uStringbuffer_insert_ascii() 191 for( n = 0; n < len; n++ ) in rtl_uStringbuffer_insert_ascii() [all …]
|
H A D | ustring.c | 77 sal_Unicode const * str, sal_Int32 len, in rtl_ustr_indexOfAscii_WithLength() argument 80 if (subLen > 0 && subLen <= len) { in rtl_ustr_indexOfAscii_WithLength() 82 for (i = 0; i <= len - subLen; ++i) { in rtl_ustr_indexOfAscii_WithLength() 94 sal_Unicode const * str, sal_Int32 len, in rtl_ustr_lastIndexOfAscii_WithLength() argument 97 if (subLen > 0 && subLen <= len) { in rtl_ustr_lastIndexOfAscii_WithLength() 342 for (i = 0; i < len; ++i) { in rtl_ustr_ascii_compareIgnoreAsciiCase_WithLengths() 814 if ( len < 256 ) in rtl_uString_internConvert() 816 if ( len < 0 ) in rtl_uString_internConvert() 817 len = strlen( str ); in rtl_uString_internConvert() 824 for (i = 0; i < len; i++) in rtl_uString_internConvert() [all …]
|
H A D | digest.c | 778 sal_uInt32 len; in rtl_digest_updateMD5() local 791 len = ctx->m_nL + (nDatLen << 3); in rtl_digest_updateMD5() 792 if (len < ctx->m_nL) ctx->m_nH += 1; in rtl_digest_updateMD5() 794 ctx->m_nL = len; in rtl_digest_updateMD5() 1255 sal_uInt32 len; in rtl_digest_updateSHA() local 1268 len = ctx->m_nL + (nDatLen << 3); in rtl_digest_updateSHA() 1269 if (len < ctx->m_nL) ctx->m_nH += 1; in rtl_digest_updateSHA() 1271 ctx->m_nL = len; in rtl_digest_updateSHA() 1443 sal_uInt32 len; in rtl_digest_updateSHA1() local 1456 len = ctx->m_nL + (nDatLen << 3); in rtl_digest_updateSHA1() [all …]
|
H A D | strbuf.c | 107 sal_Int32 len ) in rtl_stringbuffer_insert() argument 112 if( len != 0 ) in rtl_stringbuffer_insert() 114 if (*capacity < (*This)->length + len) in rtl_stringbuffer_insert() 115 rtl_stringbuffer_ensureCapacity( This, capacity, (*This)->length + len ); in rtl_stringbuffer_insert() 128 pBuf[offset + len] = pBuf[offset]; in rtl_stringbuffer_insert() 130 rtl_moveMemory( pBuf + offset + len, pBuf + offset, n * sizeof(sal_Char) ); in rtl_stringbuffer_insert() 133 n = len; in rtl_stringbuffer_insert() 134 if( len == 1 ) in rtl_stringbuffer_insert() 138 rtl_copyMemory( pBuf + offset, str, len * sizeof(sal_Char) ); in rtl_stringbuffer_insert() 139 (*This)->length = nOldLen + len; in rtl_stringbuffer_insert() [all …]
|
/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()
|
H A D | rtl_String_Utils.hxx | 58 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ); 59 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len );
|
/trunk/main/sal/qa/OStringBuffer/ |
H A D | rtl_String_Utils.hxx | 58 sal_Bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ); 60 sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len );
|
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/sal/osl/w32/ |
H A D | procimpl.cxx | 311 const DWORD len = GetShortPathNameW( in getShortPath() local 314 if (!len && GetLastError() == ERROR_FILE_NOT_FOUND in getShortPath() 325 ret = rtl::OUString(&vec[0], len); in getShortPath()
|
/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()
|
H A D | signal.c | 434 int len; in callback() local 443 if ((len = readlink(buffer, exe, PATH_MAX)) != -1) in callback() 445 exe[len] = '\0'; in callback()
|
H A D | file_volume.cxx | 623 int len = pc - aMountEnt.mnt_special; in osl_isFloppyDrive() local 625 strncpy( pHandle->pszDevice, aMountEnt.mnt_special, len ); in osl_isFloppyDrive() 626 pHandle->pszDevice[len] = '\0'; in osl_isFloppyDrive()
|
H A D | nlsupport.c | 181 size_t len = strlen( locale ); in _parse_locale() local 183 if( len >= 2 ) in _parse_locale() 194 if( (len > 3 && '_' == locale[3]) || (len == 3 && '_' != locale[2]) ) in _parse_locale() 202 if( len >= offset+3 && '_' == locale[offset] ) in _parse_locale() 210 if( len > offset ) { in _parse_locale() 211 …rtl_string2UString( &pVariant, locale + offset, len - offset, RTL_TEXTENCODING_ASCII_US, OSTRING_T… in _parse_locale()
|
H A D | util.c | 282 size_t len=256; in osl_InitSparcV9() local 285 sysctl(mib, 2, processorname, &len, NULL, 0); in osl_InitSparcV9() 286 if (!strncmp("sparc64",processorname, len)) { in osl_InitSparcV9()
|
/trunk/main/sal/osl/os2/ |
H A D | nlsupport.c | 172 size_t len = strlen( locale ); in _parse_locale() local 174 if( len >= 2 ) in _parse_locale() 187 if( len >= 5 && '_' == locale[2] ) in _parse_locale() 195 if( len > offset ) { in _parse_locale() 196 …rtl_string2UString( &pVariant, locale + offset, len - offset, RTL_TEXTENCODING_ASCII_US, OSTRING_T… in _parse_locale()
|
H A D | file_url.cxx | 1349 sal_Int32 len = rtl_ustr_getLength(path_resolved_so_far); 1351 OSL_ASSERT(len < PATH_MAX); 1353 resolved_path = rtl::OUString(path_resolved_so_far, len);
|
/trunk/main/sal/inc/rtl/ |
H A D | string.h | 269 sal_Int32 SAL_CALL rtl_str_hashCode_WithLength( const sal_Char * str, sal_Int32 len ) SAL_THROW_EXT… 303 sal_Int32 SAL_CALL rtl_str_indexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Char ch… 339 sal_Int32 SAL_CALL rtl_str_lastIndexOfChar_WithLength( const sal_Char * str, sal_Int32 len, sal_Cha… 380 sal_Int32 SAL_CALL rtl_str_indexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sal_Ch… 421 sal_Int32 SAL_CALL rtl_str_lastIndexOfStr_WithLength( const sal_Char * str, sal_Int32 len, const sa… 456 void SAL_CALL rtl_str_replaceChar_WithLength( sal_Char * str, sal_Int32 len, sal_Char oldChar, sal_… 481 void SAL_CALL rtl_str_toAsciiLowerCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN… 506 void SAL_CALL rtl_str_toAsciiUpperCase_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN… 538 sal_Int32 SAL_CALL rtl_str_trim_WithLength( sal_Char * str, sal_Int32 len ) SAL_THROW_EXTERN_C(); 798 void SAL_CALL rtl_string_new_WithLength( rtl_String ** newStr, sal_Int32 len ) SAL_THROW_EXTERN_C(); [all …]
|
H A D | ustring.hxx | 847 char const * str, sal_Int32 len, sal_Int32 fromIndex = 0) const in indexOfAsciiL() argument 851 pData->buffer + fromIndex, pData->length - fromIndex, str, len); in indexOfAsciiL() 918 sal_Int32 lastIndexOfAsciiL(char const * str, sal_Int32 len) const in lastIndexOfAsciiL() 922 pData->buffer, pData->length, str, len); in lastIndexOfAsciiL()
|
H A D | ustrbuf.h | 108 sal_Int32 len); 155 sal_Int32 len);
|
H A D | ustrbuf.hxx | 336 OUStringBuffer & append( const sal_Unicode * str, sal_Int32 len) in append() argument 339 rtl_uStringbuffer_insert( &pData, &nCapacity, getLength(), str, len ); in append() 382 OUStringBuffer & appendAscii( const sal_Char * str, sal_Int32 len) in appendAscii() argument 384 rtl_uStringbuffer_insert_ascii( &pData, &nCapacity, getLength(), str, len ); in appendAscii() 566 OUStringBuffer & insert( sal_Int32 offset, const sal_Unicode * str, sal_Int32 len) in insert() argument 569 rtl_uStringbuffer_insert( &pData, &nCapacity, offset, str, len ); in insert()
|
H A D | ustring.h | 178 …_WithLength( const sal_Unicode * first, const sal_Char * second, sal_Int32 len ) SAL_THROW_EXTERN_… 535 sal_Int32 SAL_CALL rtl_ustr_hashCode_WithLength( const sal_Unicode * str, sal_Int32 len ) SAL_THROW… 569 sal_Int32 SAL_CALL rtl_ustr_indexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal_Uni… 605 sal_Int32 SAL_CALL rtl_ustr_lastIndexOfChar_WithLength( const sal_Unicode * str, sal_Int32 len, sal… 673 sal_Unicode const * str, sal_Int32 len, 742 sal_Unicode const * str, sal_Int32 len, 803 void SAL_CALL rtl_ustr_toAsciiLowerCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EX… 828 void SAL_CALL rtl_ustr_toAsciiUpperCase_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EX… 860 sal_Int32 SAL_CALL rtl_ustr_trim_WithLength( sal_Unicode * str, sal_Int32 len ) SAL_THROW_EXTERN_C(… 1167 …tr_WithLength( rtl_uString ** newStr, const sal_Unicode * value, sal_Int32 len ) SAL_THROW_EXTERN_… [all …]
|
H A D | byteseq.hxx | 58 inline ByteSequence::ByteSequence( const sal_Int8 * pElements, sal_Int32 len ) in ByteSequence() argument 61 ::rtl_byte_sequence_constructFromArray( &_pSequence, pElements, len ); in ByteSequence() 68 inline ByteSequence::ByteSequence( sal_Int32 len, enum __ByteSequence_NoDefault ) in ByteSequence() argument 71 ::rtl_byte_sequence_constructNoDefault( &_pSequence, len ); in ByteSequence() 83 inline ByteSequence::ByteSequence( sal_Int32 len ) in ByteSequence() argument 86 ::rtl_byte_sequence_construct( &_pSequence, len ); in ByteSequence()
|
H A D | strbuf.h | 109 sal_Int32 len);
|
H A D | strbuf.hxx | 335 OStringBuffer & append( const sal_Char * str, sal_Int32 len) in append() argument 338 rtl_stringbuffer_insert( &pData, &nCapacity, getLength(), str, len ); in append() 502 OStringBuffer & insert( sal_Int32 offset, const sal_Char * str, sal_Int32 len) in insert() argument 505 rtl_stringbuffer_insert( &pData, &nCapacity, offset, str, len ); in insert()
|
/trunk/main/rsc/source/rscpp/ |
H A D | cpp1.c | 502 int len; local 504 && nEvalOff + (len=strlen(token)) < NEVALBUF ) 507 nEvalOff += len;
|