2
%%--------------------------------------------------------------------
5
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
7
%% The contents of this file are subject to the Erlang Public License,
8
%% Version 1.1, (the "License"); you may not use this file except in
9
%% compliance with the License. You should have received a copy of the
10
%% Erlang Public License along with this software. If not, it can be
11
%% retrieved online at http://www.erlang.org/.
13
%% Software distributed under the License is distributed on an "AS IS"
14
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15
%% the License for the specific language governing rights and limitations
19
%%----------------------------------------------------------------------
20
%% File : xmerl_sax_parser_list.erl
23
%% Created : 25 Apr 2008
24
%%----------------------------------------------------------------------
25
-module(xmerl_sax_parser_list).
27
%%----------------------------------------------------------------------
29
%%----------------------------------------------------------------------
30
-define(STRING_EMPTY, []).
31
-define(STRING(MatchStr), MatchStr).
32
-define(STRING_REST(MatchStr, Rest), MatchStr ++ Rest).
33
-define(APPEND_STRING(Rest, New), Rest ++ New).
34
-define(TO_INPUT_FORMAT(Val), Val).
36
%% In the list case we can't use a '++' when matchin against an unbound variable
37
-define(STRING_UNBOUND_REST(MatchChar, Rest), [MatchChar | Rest]).
38
-define(BYTE_ORDER_MARK_1, undefined_bom1).
39
-define(BYTE_ORDER_MARK_2, undefined_bom2).
40
-define(BYTE_ORDER_MARK_REST(Rest), [undefined|Rest]).