Lines Matching refs:p

60 static const xub_Unicode* SkipWhitespace( const xub_Unicode* p )  in SkipWhitespace()  argument
62 while( *p && ( *p == ' ' || *p == '\t' ) ) in SkipWhitespace()
63 p++; in SkipWhitespace()
64 return p; in SkipWhitespace()
70 static const xub_Unicode* Symbol( const xub_Unicode* p, XubString& rSym, const SbxSimpleCharClass& … in Symbol() argument
74 if( *p == '[' ) in Symbol()
76 rSym = ++p; in Symbol()
77 while( *p && *p != ']' ) in Symbol()
78 p++, nLen++; in Symbol()
79 p++; in Symbol()
84 if( !rCharClass.isAlpha( *p ) && *p != '_' ) in Symbol()
88 rSym = p; in Symbol()
90 while( *p && (rCharClass.isAlphaNumeric( *p ) || *p == '_') ) in Symbol()
91 p++, nLen++; in Symbol()
93 if( *p && (*p == '%' || *p == '&' || *p == '!' || *p == '#' || *p == '$' ) ) in Symbol()
94 p++; in Symbol()
98 return p; in Symbol()
109 const xub_Unicode* p = SkipWhitespace( *ppBuf ); in QualifiedName() local
110 if( aCharClass.isAlpha( *p ) || *p == '_' || *p == '[' ) in QualifiedName()
113 refVar = Element( pObj, pGbl, &p, t, aCharClass ); in QualifiedName()
114 while( refVar.Is() && (*p == '.' || *p == '!') ) in QualifiedName()
125 p++; in QualifiedName()
127 refVar = Element( pObj, pGbl, &p, t, aCharClass ); in QualifiedName()
132 *ppBuf = p; in QualifiedName()
147 const xub_Unicode* p = SkipWhitespace( *ppBuf ); in Operand() local
148 if( !bVar && ( aCharClass.isDigit( *p ) in Operand()
149 || ( *p == '.' && aCharClass.isDigit( *( p+1 ) ) ) in Operand()
150 || *p == '-' in Operand()
151 || *p == '&' ) ) in Operand()
155 if( !refVar->Scan( XubString( p ), &nLen ) ) in Operand()
158 p += nLen; in Operand()
160 else if( !bVar && *p == '"' ) in Operand()
164 p++; in Operand()
168 if( !*p ) in Operand()
171 if( *p == '"' ) in Operand()
172 if( *++p != '"' ) in Operand()
174 aString += *p++; in Operand()
179 refVar = QualifiedName( pObj, pGbl, &p, SbxCLASS_DONTCARE ); in Operand()
180 *ppBuf = p; in Operand()
191 const xub_Unicode* p = *ppBuf; in MulDiv() local
192 SbxVariableRef refVar( Operand( pObj, pGbl, &p, sal_False ) ); in MulDiv()
193 p = SkipWhitespace( p ); in MulDiv()
194 while( refVar.Is() && ( *p == '*' || *p == '/' ) ) in MulDiv()
196 xub_Unicode cOp = *p++; in MulDiv()
197 SbxVariableRef refVar2( Operand( pObj, pGbl, &p, sal_False ) ); in MulDiv()
215 *ppBuf = p; in MulDiv()
223 const xub_Unicode* p = *ppBuf; in PlusMinus() local
224 SbxVariableRef refVar( MulDiv( pObj, pGbl, &p ) ); in PlusMinus()
225 p = SkipWhitespace( p ); in PlusMinus()
226 while( refVar.Is() && ( *p == '+' || *p == '-' ) ) in PlusMinus()
228 xub_Unicode cOp = *p++; in PlusMinus()
229 SbxVariableRef refVar2( MulDiv( pObj, pGbl, &p ) ); in PlusMinus()
247 *ppBuf = p; in PlusMinus()
255 const xub_Unicode* p = *ppBuf; in Assign() local
256 SbxVariableRef refVar( Operand( pObj, pGbl, &p, sal_True ) ); in Assign()
257 p = SkipWhitespace( p ); in Assign()
260 if( *p == '=' ) in Assign()
270 p++; in Assign()
271 SbxVariableRef refVar2( PlusMinus( pObj, pGbl, &p ) ); in Assign()
285 *ppBuf = p; in Assign()
300 const xub_Unicode* p = Symbol( *ppBuf, aSym, rCharClass ); in Element() local
313 p = SkipWhitespace( p ); in Element()
314 if( *p == '(' ) in Element()
316 p++; in Element()
322 while( *p && *p != ')' && *p != ']' ) in Element()
324 SbxVariableRef refArg = PlusMinus( pGbl, pGbl, &p ); in Element()
338 p = SkipWhitespace( p ); in Element()
339 if( *p == ',' ) in Element()
340 p++; in Element()
342 if( *p == ')' ) in Element()
343 p++; in Element()
351 *ppBuf = p; in Element()
362 const xub_Unicode* p = rTxt.GetBuffer(); in Execute() local
365 p = SkipWhitespace( p ); in Execute()
366 if( !*p ) in Execute()
368 if( *p++ != '[' ) in Execute()
372 pVar = Assign( this, this, &p ); in Execute()
375 p = SkipWhitespace( p ); in Execute()
376 if( *p++ != ']' ) in Execute()
387 const xub_Unicode* p = rName.GetBuffer(); in FindQualified() local
388 p = SkipWhitespace( p ); in FindQualified()
389 if( !*p ) in FindQualified()
391 pVar = QualifiedName( this, this, &p, t ); in FindQualified()
392 p = SkipWhitespace( p ); in FindQualified()
393 if( *p ) in FindQualified()