Lines Matching refs:m_Lines
130 sal_Char** m_Lines; member
337 if ( pProfile->m_Lines != NULL ) in osl_closeProfile()
341 if ( pProfile->m_Lines[idx] != NULL ) in osl_closeProfile()
343 free(pProfile->m_Lines[idx]); in osl_closeProfile()
344 pProfile->m_Lines[idx]=NULL; in osl_closeProfile()
347 free(pProfile->m_Lines); in osl_closeProfile()
348 pProfile->m_Lines=NULL; in osl_closeProfile()
534 ((pStr = strchr(pProfile->m_Lines[pSec->m_Entries[NoEntry].m_Line], in osl_readProfileString()
760 free(pProfile->m_Lines[i]); in osl_writeProfileString()
761 pProfile->m_Lines[i] = strdup(Line); in osl_writeProfileString()
762 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
897 if ((pSec->m_Line > 0) && (pProfile->m_Lines[pSec->m_Line - 1][0] == '\0')) in osl_removeProfileEntry()
986 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
1081 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], in osl_getProfileSections()
1526 if (pProfile->m_Lines == NULL) in addLine()
1529 pProfile->m_Lines = (sal_Char **)calloc(pProfile->m_MaxLines, sizeof(sal_Char *)); in addLine()
1537 pProfile->m_Lines = (sal_Char **)realloc(pProfile->m_Lines, in addLine()
1541 pProfile->m_Lines[idx]=NULL; in addLine()
1545 if (pProfile->m_Lines == NULL) in addLine()
1554 if ( pProfile->m_Lines != NULL && pProfile->m_Lines[pProfile->m_NoLines] != NULL ) in addLine()
1556 free(pProfile->m_Lines[pProfile->m_NoLines]); in addLine()
1558 pProfile->m_Lines[pProfile->m_NoLines++] = strdup(Line); in addLine()
1560 return (pProfile->m_Lines[pProfile->m_NoLines - 1]); in addLine()
1567 if (pProfile->m_Lines == NULL) in insertLine()
1570 pProfile->m_Lines = (sal_Char **)calloc(pProfile->m_MaxLines, sizeof(sal_Char *)); in insertLine()
1575 pProfile->m_Lines = (sal_Char **)realloc(pProfile->m_Lines, in insertLine()
1578 memset(&pProfile->m_Lines[pProfile->m_NoLines], in insertLine()
1583 if (pProfile->m_Lines == NULL) in insertLine()
1598 memmove(&pProfile->m_Lines[LineNo + 1], &pProfile->m_Lines[LineNo], in insertLine()
1618 pProfile->m_Lines[LineNo] = strdup(Line); in insertLine()
1620 return (pProfile->m_Lines[LineNo]); in insertLine()
1627 free(pProfile->m_Lines[LineNo]); in removeLine()
1628 pProfile->m_Lines[LineNo]=NULL; in removeLine()
1634 memmove(&pProfile->m_Lines[LineNo], &pProfile->m_Lines[LineNo + 1], in removeLine()
1637 memset(&pProfile->m_Lines[pProfile->m_NoLines - 1], in removeLine()
1656 pProfile->m_Lines[LineNo] = NULL; in removeLine()
1671 pSection->m_Entries[NoEntry].m_Offset = Entry - pProfile->m_Lines[Line]; in setEntry()
1779 pProfile->m_Sections[pProfile->m_NoSections - 1].m_Offset = Section - pProfile->m_Lines[Line]; in addSection()
1832 (strncasecmp(Section, &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], pSec->m_Len) in findEntry()
1848 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1900 pStr = (sal_Char *)stripBlanks(pProfile->m_Lines[i], NULL); in loadProfile()
1946 if (pProfile->m_Lines != NULL) in storeProfile()
1963 OSL_VERIFY(OslProfile_putLine(pTmpFile, pProfile->m_Lines[i])); in storeProfile()
2001 free(pProfile->m_Lines); in storeProfile()
2002 pProfile->m_Lines = NULL; in storeProfile()