mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
WIP: nlsstub implementation, NPL added to all of nlsstub
This commit is contained in:
parent
f80fdc69aa
commit
281b60ea46
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef calendar_h__
|
||||
#define calendar_h__
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef datefmt_h__
|
||||
#define datefmt_h__
|
||||
|
||||
@ -6,6 +24,7 @@
|
||||
|
||||
class ParsePosition;
|
||||
class Format;
|
||||
class TimeZone;
|
||||
|
||||
class DateFormat
|
||||
{
|
||||
@ -19,7 +38,7 @@ public:
|
||||
virtual Date parse(const UnicodeString& aUnicodeString, ErrorCode& aStatus) const;
|
||||
virtual Date parse(const UnicodeString& aUnicodeString, ParsePosition& aPosition) const = 0;
|
||||
|
||||
virtual PRBool operator==(const Format&) const;
|
||||
virtual PRBool operator==(const Format& aFormat) const;
|
||||
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef gregocal_h__
|
||||
#define gregocal_h__
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef hashtab_h__
|
||||
#define hashtab_h__
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef locid_h__
|
||||
#define locid_h__
|
||||
|
||||
@ -13,7 +31,7 @@ public:
|
||||
~Locale();
|
||||
|
||||
static const Locale& getDefault();
|
||||
UnicodeString& getName(UnicodeString& aName) const;
|
||||
UnicodeString& getName(UnicodeString& aName) const;
|
||||
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef nlsloc_h__
|
||||
#define nlsloc_h__
|
||||
|
||||
|
@ -1,6 +1,26 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef parsepos_h__
|
||||
#define parsepos_h__
|
||||
|
||||
#include "ptypes.h"
|
||||
|
||||
class ParsePosition
|
||||
{
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef ptypes_h__
|
||||
#define ptypes_h__
|
||||
|
||||
@ -13,7 +31,12 @@ typedef PRInt32 t_int32;
|
||||
typedef PRBool t_bool;
|
||||
typedef PRInt32 TextOffset;
|
||||
|
||||
#define NS_NLS NS_BASE
|
||||
#ifdef _IMPL_NS_NLS
|
||||
#define NS_NLS NS_EXPORT
|
||||
#else
|
||||
#define NS_NLS NS_IMPORT
|
||||
#endif
|
||||
|
||||
|
||||
#define SUCCESS(x) ((x)<=ZERO_ERROR)
|
||||
#define FAILURE(x) ((x)>ZERO_ERROR)
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef simpletz_h__
|
||||
#define simpletz_h__
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef smpdtfmt_h__
|
||||
#define smpdtfmt_h__
|
||||
|
||||
|
@ -1,8 +1,28 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef timezone_h__
|
||||
#define timezone_h__
|
||||
|
||||
#include "ptypes.h"
|
||||
|
||||
class UnicodeString;
|
||||
|
||||
class TimeZone
|
||||
{
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef unicode_h__
|
||||
#define unicode_h__
|
||||
|
||||
|
@ -1,3 +1,21 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#ifndef unistring_h__
|
||||
#define unistring_h__
|
||||
|
||||
|
89
modules/calendar/src/nlsstub/src/calendar.cpp
Normal file
89
modules/calendar/src/nlsstub/src/calendar.cpp
Normal file
@ -0,0 +1,89 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
|
||||
#include "nscore.h"
|
||||
#include "calendar.h"
|
||||
//#include "timezone.h"
|
||||
|
||||
|
||||
Calendar::Calendar()
|
||||
{
|
||||
}
|
||||
|
||||
Calendar::~Calendar()
|
||||
{
|
||||
}
|
||||
|
||||
Date Calendar::getNow()
|
||||
{
|
||||
return ((Date) nsnull);
|
||||
|
||||
}
|
||||
|
||||
void Calendar::setTimeZone(const TimeZone& aZone)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
Date Calendar::getTime(ErrorCode& aStatus) const
|
||||
{
|
||||
return ((Date)nsnull);
|
||||
}
|
||||
|
||||
|
||||
PRInt32 Calendar::get(EDateFields aField, ErrorCode& aStatus) const
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
|
||||
void Calendar::setTime(Date aDate, ErrorCode& aStatus)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void Calendar::set(EDateFields aField, PRInt32 aValue)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void Calendar::set(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void Calendar::set(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate, PRInt32 aHour, PRInt32 aMinute)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void Calendar::set(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate, PRInt32 aHour, PRInt32 aMinute, PRInt32 aSecond)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void Calendar::clear()
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void Calendar::clear(EDateFields aField)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
49
modules/calendar/src/nlsstub/src/datefmt.cpp
Normal file
49
modules/calendar/src/nlsstub/src/datefmt.cpp
Normal file
@ -0,0 +1,49 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "nscore.h"
|
||||
#include "datefmt.h"
|
||||
#include "unistring.h"
|
||||
|
||||
DateFormat::DateFormat()
|
||||
{
|
||||
}
|
||||
|
||||
DateFormat::~DateFormat()
|
||||
{
|
||||
}
|
||||
|
||||
void DateFormat::setLenient(PRBool aLenient)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void DateFormat::setTimeZone(const TimeZone& aZone)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Date DateFormat::parse(const UnicodeString& aUnicodeString, ErrorCode& aStatus) const
|
||||
{
|
||||
return ((Date)nsnull);
|
||||
}
|
||||
|
||||
PRBool DateFormat::operator==(const Format& aFormat) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
70
modules/calendar/src/nlsstub/src/gregocal.cpp
Normal file
70
modules/calendar/src/nlsstub/src/gregocal.cpp
Normal file
@ -0,0 +1,70 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "gregocal.h"
|
||||
|
||||
GregorianCalendar::GregorianCalendar()
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::~GregorianCalendar()
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(TimeZone* aZoneToAdopt, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(const TimeZone& aZone, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(const Locale& aLocale, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(TimeZone* aZoneToAdopt, const Locale& aLocale, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(const TimeZone& aZone, const Locale& aLocale, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate, PRInt32 aHour, PRInt32 aMinute, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
GregorianCalendar::GregorianCalendar(PRInt32 aYear, PRInt32 aMonth, PRInt32 aDate, PRInt32 aHour, PRInt32 aMinute, PRInt32 aSecond, ErrorCode& aSuccess)
|
||||
{
|
||||
}
|
||||
|
||||
void GregorianCalendar::add(EDateFields aField, PRInt32 aAmount, ErrorCode& aStatus)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
40
modules/calendar/src/nlsstub/src/locid.cpp
Normal file
40
modules/calendar/src/nlsstub/src/locid.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "locid.h"
|
||||
#include "unistring.h"
|
||||
|
||||
Locale::Locale()
|
||||
{
|
||||
}
|
||||
|
||||
Locale::~Locale()
|
||||
{
|
||||
}
|
||||
|
||||
const Locale& Locale::getDefault()
|
||||
{
|
||||
Locale l;
|
||||
return (l);
|
||||
}
|
||||
|
||||
UnicodeString& Locale::getName(UnicodeString& aName) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
@ -24,7 +24,7 @@ DEPTH = $(NS_DEPTH)
|
||||
|
||||
LIBRARY_NAME = nlsstub10
|
||||
|
||||
LCFLAGS= -DLIBJULIAN $(LCFLAGS)
|
||||
LCFLAGS= -DLIBJULIAN $(LCFLAGS) -D_IMPL_NS_NLS
|
||||
|
||||
DLLNAME = nlsstub10
|
||||
PDBFILE = $(DLLNAME).pdb
|
||||
@ -40,17 +40,27 @@ REQUIRES=nspr
|
||||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\nlsloc.obj \
|
||||
.\$(OBJDIR)\calendar.obj \
|
||||
.\$(OBJDIR)\datefmt.obj \
|
||||
.\$(OBJDIR)\gregocal.obj \
|
||||
.\$(OBJDIR)\locid.obj \
|
||||
.\$(OBJDIR)\parsepos.obj \
|
||||
.\$(OBJDIR)\simpletz.obj \
|
||||
.\$(OBJDIR)\smpdtfmt.obj \
|
||||
.\$(OBJDIR)\timezone.obj \
|
||||
.\$(OBJDIR)\unistring.obj \
|
||||
$(NULL)
|
||||
|
||||
LLIBS = $(LLIBS) \
|
||||
$(DIST)\lib\raptorbase.lib \
|
||||
$(DIST)\lib\libnspr21.lib \
|
||||
$(DIST)\lib\libplc21.lib \
|
||||
$(NULL)
|
||||
|
||||
LINCS=-I$(XPDIST)\public\nls
|
||||
LINCS=-I$(XPDIST)\public\nls -I$(XPDIST)\public\raptor -I$(XPDIST)\public\xpcom
|
||||
|
||||
#// From the old Manifest file
|
||||
CPPSRCS=nlsloc.cpp
|
||||
CPPSRCS=nlsloc.cpp calendar.cpp datefmt.cpp gregocal.cpp locid.cpp parsepos.cpp simpletz.cpp smpdtfmt.cpp timezone.cpp unistring.cpp
|
||||
|
||||
|
||||
|
||||
|
@ -1,9 +1,19 @@
|
||||
/* -*- Mode: C; tab-width: 4; -*- */
|
||||
/*
|
||||
* @(#)nls.cpp Jim Saunders
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* Copyright (c) 1995 Netscape Communications Corporation. All Rights Reserved.
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "nlsloc.h"
|
||||
|
42
modules/calendar/src/nlsstub/src/parsepos.cpp
Normal file
42
modules/calendar/src/nlsstub/src/parsepos.cpp
Normal file
@ -0,0 +1,42 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "parsepos.h"
|
||||
|
||||
ParsePosition::ParsePosition()
|
||||
{
|
||||
}
|
||||
|
||||
ParsePosition::~ParsePosition()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ParsePosition::ParsePosition(TextOffset aIndex)
|
||||
{
|
||||
}
|
||||
|
||||
ParsePosition::ParsePosition(const ParsePosition& aParsePosition)
|
||||
{
|
||||
}
|
||||
|
||||
PRBool ParsePosition::operator==(const ParsePosition& aParsePosition) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
||||
|
63
modules/calendar/src/nlsstub/src/simpletz.cpp
Normal file
63
modules/calendar/src/nlsstub/src/simpletz.cpp
Normal file
@ -0,0 +1,63 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "nscore.h"
|
||||
#include "simpletz.h"
|
||||
|
||||
SimpleTimeZone::SimpleTimeZone()
|
||||
{
|
||||
}
|
||||
|
||||
SimpleTimeZone::~SimpleTimeZone()
|
||||
{
|
||||
}
|
||||
|
||||
SimpleTimeZone::SimpleTimeZone(PRInt32 aRawOffset, const UnicodeString& aID)
|
||||
{
|
||||
}
|
||||
|
||||
SimpleTimeZone::SimpleTimeZone(PRInt32 aRawOffset, const UnicodeString& aID,
|
||||
PRInt8 aStartMonth, PRInt8 aStartDayOfWeekInMonth,
|
||||
PRInt8 aStartDayOfWeek, PRInt32 aStartTime,
|
||||
PRInt8 aEndMonth, PRInt8 aEndDayOfWeekInMonth,
|
||||
PRInt8 aEndDayOfWeek, PRInt32 aEndTime,
|
||||
PRInt32 aDstSavings)
|
||||
{
|
||||
}
|
||||
|
||||
TimeZone* SimpleTimeZone::clone() const
|
||||
{
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
void SimpleTimeZone::setRawOffset(PRInt32 aOffsetMillis)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void SimpleTimeZone::setStartRule(PRInt32 aMonth, PRInt32 aDayOfWeekInMonth, PRInt32 aDayOfWeek, PRInt32 aTime)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
void SimpleTimeZone::setEndRule(PRInt32 aMonth, PRInt32 aDayOfWeekInMonth, PRInt32 aDayOfWeek, PRInt32 aTime)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
|
77
modules/calendar/src/nlsstub/src/smpdtfmt.cpp
Normal file
77
modules/calendar/src/nlsstub/src/smpdtfmt.cpp
Normal file
@ -0,0 +1,77 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "smpdtfmt.h"
|
||||
|
||||
FieldPosition::FieldPosition()
|
||||
{
|
||||
}
|
||||
|
||||
FieldPosition::~FieldPosition()
|
||||
{
|
||||
}
|
||||
|
||||
FieldPosition::FieldPosition(PRInt32 aField)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SimpleDateFormat::SimpleDateFormat()
|
||||
{
|
||||
}
|
||||
|
||||
SimpleDateFormat::~SimpleDateFormat()
|
||||
{
|
||||
}
|
||||
|
||||
SimpleDateFormat::SimpleDateFormat(ErrorCode& aStatus)
|
||||
{
|
||||
}
|
||||
|
||||
SimpleDateFormat::SimpleDateFormat(const UnicodeString& aPattern, const Locale& aLocale, ErrorCode& aStatus)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
UnicodeString& SimpleDateFormat::format(Date aDate, UnicodeString& aAppendTo, FieldPosition& aPosition) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
UnicodeString& SimpleDateFormat::format(const Formattable& aObject, UnicodeString& aAppendTo, FieldPosition& aPosition, ErrorCode& aStatus) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
void SimpleDateFormat::applyLocalizedPattern(const UnicodeString& aPattern, ErrorCode& aStatus)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
|
||||
Date SimpleDateFormat::parse(const UnicodeString& aUnicodeString, ParsePosition& aPosition) const
|
||||
{
|
||||
return ((Date)nsnull);
|
||||
}
|
||||
|
||||
PRBool SimpleDateFormat::operator==(const Format& other) const
|
||||
{
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
44
modules/calendar/src/nlsstub/src/timezone.cpp
Normal file
44
modules/calendar/src/nlsstub/src/timezone.cpp
Normal file
@ -0,0 +1,44 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "timezone.h"
|
||||
#include "unistring.h"
|
||||
|
||||
TimeZone::TimeZone()
|
||||
{
|
||||
}
|
||||
|
||||
TimeZone::~TimeZone()
|
||||
{
|
||||
}
|
||||
|
||||
TimeZone* TimeZone::createDefault()
|
||||
{
|
||||
return ((TimeZone *)nsnull);
|
||||
}
|
||||
|
||||
TimeZone* TimeZone::createTimeZone(const UnicodeString& aID)
|
||||
{
|
||||
return ((TimeZone *)nsnull);
|
||||
}
|
||||
|
||||
void TimeZone::setID(const UnicodeString& aID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
228
modules/calendar/src/nlsstub/src/unistring.cpp
Normal file
228
modules/calendar/src/nlsstub/src/unistring.cpp
Normal file
@ -0,0 +1,228 @@
|
||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.0 (the "NPL"); you may not use this file except in
|
||||
* compliance with the NPL. You may obtain a copy of the NPL at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
* for the specific language governing rights and limitations under the
|
||||
* NPL.
|
||||
*
|
||||
* The Initial Developer of this code under the NPL is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
|
||||
#include "unistring.h"
|
||||
|
||||
|
||||
UnicodeString::UnicodeString()
|
||||
{
|
||||
}
|
||||
|
||||
UnicodeString::~UnicodeString()
|
||||
{
|
||||
}
|
||||
|
||||
UnicodeString::UnicodeString(const UnicodeString& aUnicodeString)
|
||||
{
|
||||
}
|
||||
|
||||
UnicodeString::UnicodeString(const char * aString)
|
||||
{
|
||||
}
|
||||
|
||||
PRInt32 UnicodeString::hashCode() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
TextOffset UnicodeString::indexOf(const UnicodeString& aUnicodeString, TextOffset aFromOffset, PRUint32 aForLength) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
TextOffset UnicodeString::indexOf(PRUnichar aUnichar, TextOffset aFromOffset, PRUint32 aForLength) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
UnicodeString& UnicodeString::extractBetween(TextOffset aStart, TextOffset aLimit, UnicodeString& aExtractInto) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
|
||||
PRInt32 UnicodeString::compareIgnoreCase(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt32 UnicodeString::compareIgnoreCase(const PRUnichar* aUnichar, PRInt32 aLength) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt32 UnicodeString::compareIgnoreCase(const PRUnichar* aUnichar) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt32 UnicodeString::compareIgnoreCase(const char* aChar, const char* aEncoding) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt32 UnicodeString::compareIgnoreCase(const char* aChar) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::toUpper()
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::toUpper(const Locale& aLocale)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
char* UnicodeString::toCString(const char* aEncoding) const
|
||||
{
|
||||
return ((char *)nsnull);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::trim(UnicodeString& aUnicodeString) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
void UnicodeString::trim()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::remove()
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::remove(TextOffset aOffset,PRInt32 aLength)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::insert(TextOffset aThisOffset, const UnicodeString& aUnicodeString)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
PRBool UnicodeString::startsWith(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
||||
|
||||
PRBool UnicodeString::endsWith(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::removeBetween(TextOffset aStart, TextOffset aLimit)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
PRInt8 UnicodeString::compare(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt8 UnicodeString::compare(TextOffset aOffset, PRInt32 aThisLength, const UnicodeString& aUnicodeString, TextOffset aStringOffset, PRInt32 aLength) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt8 UnicodeString::compare(const PRUnichar* aUnichar) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt8 UnicodeString::compare(const PRUnichar* aUnichar, PRInt32 aLength) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
PRInt8 UnicodeString::compare(const char* aChar) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::extract(TextOffset aOffset,PRInt32 aLength, UnicodeString& aExtractInto) const
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
void UnicodeString::extract(TextOffset aOffset, PRInt32 aLength, PRUnichar*aExtractInto) const
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void UnicodeString::extract(TextOffset aOffset, PRInt32 aLength, char* aExtractInto) const
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
PRUnichar UnicodeString::operator[](TextOffset aOffset) const
|
||||
{
|
||||
PRUnichar p;
|
||||
return (p);
|
||||
}
|
||||
|
||||
PRUnichar& UnicodeString::operator[](TextOffset aOffset)
|
||||
{
|
||||
PRUnichar p;
|
||||
return (p);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::operator+=(const UnicodeString& aUnicodeString)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::operator+=(PRUnichar aUnichar)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
||||
PRBool UnicodeString::operator==(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
||||
|
||||
PRBool UnicodeString::operator!=(const UnicodeString& aUnicodeString) const
|
||||
{
|
||||
return (PR_TRUE);
|
||||
}
|
||||
|
||||
UnicodeString& UnicodeString::operator=(const UnicodeString& aUnicodeString)
|
||||
{
|
||||
UnicodeString u;
|
||||
return (u);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user