~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxCore/Parsing.h

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
//! Parse a stream of characters and look for a t_32 value after the token string.
40
40
  /*!
41
 
      Parse a t_u32 after the named token.
 
41
      Parse a unsigned int after the named token.
42
42
 
43
43
      @param  stream  Character stream to search.
44
44
      @param  token   Token to match.
56
56
      @param  MaxLen      Max number of character to return.
57
57
      @return TRUE    if the token is found inside the stream.
58
58
  */
59
 
  bool Parse_tchar (const TCHAR *stream, const TCHAR *Match, TCHAR *value, t_int size, t_int MaxLen);
 
59
  bool Parse_tchar (const TCHAR *stream, const TCHAR *Match, TCHAR *value, int size, int MaxLen);
60
60
 
61
61
//! Parse a BYTE after the named token.
62
62
  /*!
111
111
      @param Value parsed double WORD
112
112
      @return TRUE if the token is found inside the stream.
113
113
  */
114
 
  bool Parse_int (const TCHAR *Stream, const TCHAR *Match, t_int &Value);
 
114
  bool Parse_int (const TCHAR *Stream, const TCHAR *Match, int &Value);
115
115
//! Parse a NString after the named token.
116
116
  /*!
117
117
      Parse a NString after the named token.
158
158
                          If FALSE advanced the pointer past all the CR/LF character at the end of the string.
159
159
      @return True i a line was copied to LineString;
160
160
  */
161
 
  bool ParseLine (const TCHAR **Stream, TCHAR *LineBuffer, t_int BufferSize);
 
161
  bool ParseLine (const TCHAR **Stream, TCHAR *LineBuffer, int BufferSize);
162
162
 
163
163
//! Extract a line of Stream (everything up to, but not including, CR/LF).
164
164
  /*!
177
177
      @param BufferSize Size of the TokenBuffer.
178
178
      @return True if a token was found.
179
179
  */
180
 
  bool ParseToken (const TCHAR *Str, TCHAR *TokenBuffer, t_int BufferSize);
 
180
  bool ParseToken (const TCHAR *Str, TCHAR *TokenBuffer, int BufferSize);
181
181
 
182
182
//! Parse the next space-delimited string from the input stream. If the next token starts with a quote, gets entire quoted string.
183
183
  /*!