[Substrate-commits] SF.net SVN: substrate: [299] trunk
Brought to you by:
landonf
|
From: <la...@us...> - 2006-09-02 00:11:14
|
Revision: 299
http://svn.sourceforge.net/substrate/?rev=299&view=rev
Author: landonf
Date: 2006-09-01 17:11:08 -0700 (Fri, 01 Sep 2006)
Log Message:
-----------
r307@bluefish: landonf | 2006-09-01 17:09:54 -0700
LFUnicodeFormatString implementation skeleton
Modified Paths:
--------------
trunk/Foundation/Makefile.in
trunk/Tests/Foundation.c
trunk/Tests/Foundation.h
trunk/Tests/Makefile.in
Added Paths:
-----------
trunk/Foundation/LFUnicodeFormatString.h
trunk/Foundation/LFUnicodeFormatString.m
trunk/Tests/NSUnicodeFormatString.m
Property Changed:
----------------
trunk/
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 11572a18-12fc-0310-9209-f8edcc8181a7:/local/substrate/trunk:5716
9c4e9a82-0035-45cc-8f88-5282b51d5481:/local/substrate/trunk:306
+ 11572a18-12fc-0310-9209-f8edcc8181a7:/local/substrate/trunk:5716
9c4e9a82-0035-45cc-8f88-5282b51d5481:/local/substrate/trunk:307
Added: trunk/Foundation/LFUnicodeFormatString.h
===================================================================
--- trunk/Foundation/LFUnicodeFormatString.h (rev 0)
+++ trunk/Foundation/LFUnicodeFormatString.h 2006-09-02 00:11:08 UTC (rev 299)
@@ -0,0 +1,45 @@
+/*
+ * LFUnicodeFormatString.h
+ * vi:ts=4:sw=4:expandtab:
+ *
+ * Copyright (C) 2006 Landon Fuller <la...@op...>
+ * All rights reserved.
+ *
+ * Author: Landon Fuller <la...@op...>
+ *
+ * This file is part of libFoundation.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+ *
+ * We disclaim all warranties with regard to this software, including all
+ * implied warranties of merchantability and fitness, in no event shall
+ * we be liable for any special, indirect or consequential damages or any
+ * damages whatsoever resulting from loss of use, data or profits, whether in
+ * an action of contract, negligence or other tortious action, arising out of
+ * or in connection with the use or performance of this software.
+ */
+
+#ifndef __LFUnicodeFormatString_h__
+#define __LFUnicodeFormatString_h__
+
+/*!
+ * @file
+ * @internal
+ * @brief UTF-16 NSString implementation
+ * @brief UTF-16 Format String Parsing
+ */
+
+#include <Foundation/NSUnicodeString.h>
+
+/*!
+ * @ingroup LFUnicodeFormatString
+ * @{
+ */
+
+/*! @} */
+
+#endif /* __LFUnicodeFormatString_h__ */
Added: trunk/Foundation/LFUnicodeFormatString.m
===================================================================
--- trunk/Foundation/LFUnicodeFormatString.m (rev 0)
+++ trunk/Foundation/LFUnicodeFormatString.m 2006-09-02 00:11:08 UTC (rev 299)
@@ -0,0 +1,44 @@
+/*
+ * LFUnicodeFormatString.m
+ * vi:ts=4:sw=4:expandtab:
+ *
+ * Copyright (C) 2006 Landon Fuller
+ * All rights reserved.
+ *
+ * Author: Landon Fuller <la...@op...>
+ *
+ * This file is part of libFoundation.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+ *
+ * We disclaim all warranties with regard to this software, including all
+ * implied warranties of merchantability and fitness, in no event shall
+ * we be liable for any special, indirect or consequential damages or any
+ * damages whatsoever resulting from loss of use, data or profits, whether in
+ * an action of contract, negligence or other tortious action, arising out of
+ * or in connection with the use or performance of this software.
+ */
+
+/*!
+ * @file
+ * @internal
+ * @brief UTF-16 Format String Parsing
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+/*!
+ * @defgroup LFUnicodeFormatString UTF-16 Format String Parsing
+ * @internal
+ * @ingroup NSString
+ * @{
+ */
+
+
+/*! @} */
Modified: trunk/Foundation/Makefile.in
===================================================================
--- trunk/Foundation/Makefile.in 2006-09-02 00:11:00 UTC (rev 298)
+++ trunk/Foundation/Makefile.in 2006-09-02 00:11:08 UTC (rev 299)
@@ -42,12 +42,13 @@
NSRange.m \
NSProcessInfo.m \
NSString.m \
+ NSSimpleCString.m \
NSUnicodeString.m \
- NSSimpleCString.m \
NSZone.m \
LFStackException.m \
LFGNUException.m \
LFHash.c \
+ LFUnicodeFormatString.m \
s_lock.c \
$(TAS_SRC)
@@ -67,6 +68,7 @@
LFStackException.o \
LFGNUException.o \
LFHash.o \
+ LFUnicodeFormatString.o \
s_lock.o \
$(TAS_OBJS)
Modified: trunk/Tests/Foundation.c
===================================================================
--- trunk/Tests/Foundation.c 2006-09-02 00:11:00 UTC (rev 298)
+++ trunk/Tests/Foundation.c 2006-09-02 00:11:08 UTC (rev 299)
@@ -46,6 +46,7 @@
srunner_add_suite(sr, NSString_suite());
srunner_add_suite(sr, NSSimpleString_suite());
srunner_add_suite(sr, NSUnicodeString_suite());
+ srunner_add_suite(sr, NSUnicodeFormatString_suite());
srunner_add_suite(sr, NSAutoreleasePool_suite());
srunner_add_suite(sr, NSData_suite());
srunner_add_suite(sr, NSMutableData_suite());
Modified: trunk/Tests/Foundation.h
===================================================================
--- trunk/Tests/Foundation.h 2006-09-02 00:11:00 UTC (rev 298)
+++ trunk/Tests/Foundation.h 2006-09-02 00:11:08 UTC (rev 299)
@@ -34,6 +34,7 @@
Suite *NSProcessInfo_suite(void);
Suite *NSString_suite(void);
Suite *NSSimpleString_suite(void);
+Suite *NSUnicodeFormatString_suite(void);
Suite *NSUnicodeString_suite(void);
Suite *NSRange_suite(void);
Suite *NSGeometry_suite(void);
Modified: trunk/Tests/Makefile.in
===================================================================
--- trunk/Tests/Makefile.in 2006-09-02 00:11:00 UTC (rev 298)
+++ trunk/Tests/Makefile.in 2006-09-02 00:11:08 UTC (rev 299)
@@ -12,10 +12,22 @@
FOUNDATION_LIB?= -L../Foundation -lFoundation
LDFLAGS+= $(LIBS) $(OBJC_LIBS) @CHECK_LIBS@ $(FOUNDATION_LIB)
-FOUNDATION_OBJS= Foundation.o NSAutoreleasePool.o NSException.o NSZone.o \
- NSObjectAllocation.o NSObject.o NSProcessInfo.o \
- NSString.o NSSimpleString.o NSUnicodeString.o NSRange.o \
- NSGeometry.o NSData.o NSMutableData.o NSConcreteData.o \
+FOUNDATION_OBJS= Foundation.o \
+ NSAutoreleasePool.o \
+ NSException.o \
+ NSZone.o \
+ NSObjectAllocation.o \
+ NSObject.o \
+ NSProcessInfo.o \
+ NSString.o \
+ NSSimpleString.o \
+ NSUnicodeString.o \
+ NSUnicodeFormatString.o \
+ NSRange.o \
+ NSGeometry.o \
+ NSData.o \
+ NSMutableData.o \
+ NSConcreteData.o \
NSByteOrder.o
SPINLOCK_OBJS= s_lock.o
Added: trunk/Tests/NSUnicodeFormatString.m
===================================================================
--- trunk/Tests/NSUnicodeFormatString.m (rev 0)
+++ trunk/Tests/NSUnicodeFormatString.m 2006-09-02 00:11:08 UTC (rev 299)
@@ -0,0 +1,55 @@
+/*
+ * NSUnicodeFormatString.m vi:ts=4:sw=4:expandtab:
+ * Foundation Unit Tests
+ *
+ * Copyright (C) 2005 - 2006 Landon Fuller <la...@op...>
+ * All rights reserved.
+ *
+ * This file is part of libFoundation.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+ *
+ * We disclaim all warranties with regard to this software, including all
+ * implied warranties of merchantability and fitness, in no event shall
+ * we be liable for any special, indirect or consequential damages or any
+ * damages whatsoever resulting from loss of use, data or profits, whether in
+ * an action of contract, negligence or other tortious action, arising out of
+ * or in connection with the use or performance of this software.
+ */
+
+#include <check.h>
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <Foundation/NSString.h>
+
+/*
+ * Tests that are specific to the NSString format string handling.
+ */
+
+static NSAutoreleasePool *releasePool;
+
+static void setUp(void) {
+ releasePool = [[NSAutoreleasePool alloc] init];
+}
+
+static void tearDown(void) {
+ [releasePool release];
+}
+
+Suite *NSUnicodeFormatString_suite(void) {
+ Suite *s = suite_create("NSUnicodeFormatString");
+
+ TCase *tc_strings = tcase_create("Strings");
+ tcase_add_checked_fixture(tc_strings, setUp, tearDown);
+ suite_add_tcase(s, tc_strings);
+ // tcase_add_test(tc_strings, test_cString);
+
+ return (s);
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|