Lines Matching refs:i

568 	sal_uInt32    i;  in osl_readProfileIdent()  local
577 i = 0; in osl_readProfileIdent()
578 while (Strings[i] != NULL) in osl_readProfileIdent()
580 if (stricmp(Line, Strings[i]) == 0) in osl_readProfileIdent()
582 Default = i + FirstId; in osl_readProfileIdent()
585 i++; in osl_readProfileIdent()
599 sal_uInt32 i; in osl_writeProfileString() local
656 i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1; in osl_writeProfileString()
658 i = pSec->m_Line + 1; in osl_writeProfileString()
660 if (((pStr = insertLine(pProfile, Line, i)) == NULL) || in osl_writeProfileString()
661 (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) in osl_writeProfileString()
674 i = pSec->m_Entries[NoEntry].m_Line; in osl_writeProfileString()
675 free(pProfile->m_Lines[i]); in osl_writeProfileString()
676 pProfile->m_Lines[i] = strdup(Line); in osl_writeProfileString()
677 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
726 int i, n; in osl_writeProfileIdent() local
735 if ((i = Value - FirstId) >= n) in osl_writeProfileIdent()
738 bRet=osl_writeProfileString(Profile, pszSection, pszEntry, Strings[i]); in osl_writeProfileIdent()
812 sal_uInt32 i, n = 0; in osl_getProfileSectionEntries() local
840 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
842 if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen) in osl_getProfileSectionEntries()
844 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
845 [pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len); in osl_getProfileSectionEntries()
846 n += pSec->m_Entries[i].m_Len; in osl_getProfileSectionEntries()
858 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
859 n += pSec->m_Entries[i].m_Len + 1; in osl_getProfileSectionEntries()
1103 sal_uInt32 i, n = 0; in osl_getProfileSections() local
1114 for (i = 0; i < pProfile->m_NoSections; i++) in osl_getProfileSections()
1116 pSec = &pProfile->m_Sections[i]; in osl_getProfileSections()
1133 for (i = 0; i < pProfile->m_NoSections; i++) in osl_getProfileSections()
1134 n += pProfile->m_Sections[i].m_Len + 1; in osl_getProfileSections()
1653 sal_uInt32 i, n; in insertLine() local
1661 for (i = 0; i < pProfile->m_NoSections; i++) in insertLine()
1663 pSec = &pProfile->m_Sections[i]; in insertLine()
1689 sal_uInt32 i, n; in removeLine() local
1700 for (i = 0; i < pProfile->m_NoSections; i++) in removeLine()
1702 pSec = &pProfile->m_Sections[i]; in removeLine()
1877 sal_uInt32 i, n; in findEntry() local
1887 for (i = 0; i < pProfile->m_NoSections; i++) in findEntry()
1900 if (i < pProfile->m_NoSections) in findEntry()
1907 for (i = 0; i < pSec->m_NoEntries; i++) in findEntry()
1909 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1910 [pSec->m_Entries[i].m_Offset]; in findEntry()
1911 if ((Len == pSec->m_Entries[i].m_Len) && in findEntry()
1912 (strnicmp(Entry, pStr, pSec->m_Entries[i].m_Len) in findEntry()
1915 *pNoEntry = i; in findEntry()
1928 sal_uInt32 i; in loadProfile() local
1944 for (i = 0; i < pProfile->m_NoLines; i++) in loadProfile()
1946 pStr = (sal_Char *)stripBlanks(pProfile->m_Lines[i], NULL); in loadProfile()
1963 i, pStr, pChar - pStr)) in loadProfile()
1970 if (! addSection(pProfile, i, pStr + 1, pChar - pStr - 1)) in loadProfile()
1992 sal_uInt32 i; in storeProfile() local
2003 for (i = 0; i < pProfile->m_NoLines; i++) in storeProfile()
2005 OSL_VERIFY(putLine(pTmpFile, pProfile->m_Lines[i])); in storeProfile()
2308 int i = 0; in lookupProfile() local
2312 while ((strPath[i] != L'"') && (strPath[i] != L'\0')) in lookupProfile()
2313 i++; in lookupProfile()
2315 …WideCharToMultiByte(CP_ACP,0, reinterpret_cast<LPCWSTR>(strPath), i, Product, sizeof(Product), NUL… in lookupProfile()
2316 Product[i] = '\0'; in lookupProfile()
2317 strPath += i; in lookupProfile()
2553 int i = 0; in lookupProfile() local
2556 for (i = 0; i < (sizeof(SubDirs) / sizeof(SubDirs[0])); i++) in lookupProfile()
2557 if (strnicmp(pStr + 1, SubDirs[i], strlen(SubDirs[i])) == 0) in lookupProfile()