Lines Matching refs:i
522 sal_uInt32 i; in osl_readProfileIdent() local
531 i = 0; in osl_readProfileIdent()
532 while (Strings[i] != NULL) in osl_readProfileIdent()
534 if (stricmp(Line, Strings[i]) == 0) in osl_readProfileIdent()
536 Default = i + FirstId; in osl_readProfileIdent()
539 i++; in osl_readProfileIdent()
554 sal_uInt32 i; in osl_writeProfileString() local
611 i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1; in osl_writeProfileString()
613 i = pSec->m_Line + 1; in osl_writeProfileString()
615 if (((pStr = insertLine(pProfile, Line, i)) == NULL) || in osl_writeProfileString()
616 (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) in osl_writeProfileString()
629 i = pSec->m_Entries[NoEntry].m_Line; in osl_writeProfileString()
630 free(pProfile->m_Lines[i]); in osl_writeProfileString()
631 pProfile->m_Lines[i] = strdup(Line); in osl_writeProfileString()
632 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
677 int i, n; in osl_writeProfileIdent() local
686 if ((i = Value - FirstId) >= n) in osl_writeProfileIdent()
689 bRet=osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]); in osl_writeProfileIdent()
758 sal_uInt32 i, n = 0; in osl_getProfileSectionEntries() local
786 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
788 if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen) in osl_getProfileSectionEntries()
790 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
791 [pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len); in osl_getProfileSectionEntries()
792 n += pSec->m_Entries[i].m_Len; in osl_getProfileSectionEntries()
804 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
805 n += pSec->m_Entries[i].m_Len + 1; in osl_getProfileSectionEntries()
828 sal_uInt32 i, n = 0; in osl_getProfileSections() local
839 for (i = 0; i < pProfile->m_NoSections; i++) in osl_getProfileSections()
841 pSec = &pProfile->m_Sections[i]; in osl_getProfileSections()
858 for (i = 0; i < pProfile->m_NoSections; i++) in osl_getProfileSections()
859 n += pProfile->m_Sections[i].m_Len + 1; in osl_getProfileSections()
1515 sal_uInt32 i, n; in insertLine() local
1522 for (i = 0; i < pProfile->m_NoSections; i++) in insertLine()
1524 pSec = &pProfile->m_Sections[i]; in insertLine()
1549 sal_uInt32 i, n; in removeLine() local
1556 for (i = 0; i < pProfile->m_NoSections; i++) in removeLine()
1558 pSec = &pProfile->m_Sections[i]; in removeLine()
1710 sal_uInt32 i, n; in findEntry() local
1720 for (i = 0; i < pProfile->m_NoSections; i++) in findEntry()
1733 if (i < pProfile->m_NoSections) in findEntry()
1740 for (i = 0; i < pSec->m_NoEntries; i++) in findEntry()
1742 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1743 [pSec->m_Entries[i].m_Offset]; in findEntry()
1744 if ((Len == pSec->m_Entries[i].m_Len) && in findEntry()
1745 (strnicmp(Entry, pStr, pSec->m_Entries[i].m_Len) in findEntry()
1748 *pNoEntry = i; in findEntry()
1761 sal_uInt32 i; in loadProfile() local
1777 for (i = 0; i < pProfile->m_NoLines; i++) in loadProfile()
1779 pStr = (sal_Char *)stripBlanks(pProfile->m_Lines[i], NULL); in loadProfile()
1796 i, pStr, pChar - pStr)) in loadProfile()
1803 if (! addSection(pProfile, i, pStr + 1, pChar - pStr - 1)) in loadProfile()
1817 sal_uInt32 i; in storeProfile() local
1821 for (i = 0; i < pProfile->m_NoLines; i++) in storeProfile()
1822 OSL_VERIFY(putLine(pFile, pProfile->m_Lines[i])); in storeProfile()
1995 int i = 0;
2000 Product[i++] = *pszPath++;
2002 Product[i] = '\0';
2166 int i = 0;
2168 for (i = 0; i < (sizeof(SubDirs) / sizeof(SubDirs[0])); i++)
2169 if (strnicmp(pStr + 1, SubDirs[i], strlen(SubDirs[i])) == 0)