1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #include "xfa_fm2js.h"
8 static const FX_WCHAR* gs_lpStrErrorMsgInfo[] = {
9     L"unsupported char '%c'",         L"bad suffix on number",
10     L"invalidate char '%c'",          L"expected identifier instead of '%s'",
11     L"expected '%s' instead of '%s'", L"expected 'endif' instead of '%s'",
12     L"unexpected expression '%s'",    L"expected operator '%s' instead of '%s'",
13 };
XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg)14 const FX_WCHAR* XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg) {
15   if (msg < FMERR_MAXIMUM) {
16     return gs_lpStrErrorMsgInfo[msg];
17   } else {
18     return L"";
19   }
20 }
21