[sword-cvs] sword/utilities vs2osisref.cpp,1.6,1.7

sword@www.crosswire.org sword@www.crosswire.org
Fri, 30 Jan 2004 17:09:33 -0700


Update of /cvs/core/sword/utilities
In directory www:/tmp/cvs-serv30041/utilities

Modified Files:
	vs2osisref.cpp 
Log Message:
Updated for new strong: prefix and added some parsing logic for NASB


Index: vs2osisref.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/vs2osisref.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- vs2osisref.cpp	15 Jul 2003 22:45:35 -0000	1.6
+++ vs2osisref.cpp	31 Jan 2004 00:09:31 -0000	1.7
@@ -47,7 +47,7 @@
 		memset(frag, 0, 800);
 		memset(preJunk, 0, 800);
 		memset(postJunk, 0, 800);
-		while ((*startFrag) && (strchr(" ;,()[].", *startFrag))) {
+		while ((*startFrag) && (strchr(" {};,()[].", *startFrag))) {
 			outRef += *startFrag;
 			startFrag++;
 		}
@@ -55,7 +55,7 @@
 			memmove(frag, startFrag, ((const char *)element->userData - startFrag) + 1);
 			frag[((const char *)element->userData - startFrag) + 1] = 0;
 			int j;
-			for (j = strlen(frag)-1; j && (strchr(" ;,()[].", frag[j])); j--);
+			for (j = strlen(frag)-1; j && (strchr(" {};,()[].", frag[j])); j--);
 			if (frag[j+1])
 				strcpy(postJunk, frag+j+1);
 			frag[j+1]=0;
@@ -66,7 +66,7 @@
 			memmove(frag, startFrag, ((const char *)verses.GetElement(i)->userData - startFrag) + 1);
 			frag[((const char *)verses.GetElement(i)->userData - startFrag) + 1] = 0;
 			int j;
-			for (j = strlen(frag)-1; j && (strchr(" ;,()[].", frag[j])); j--);
+			for (j = strlen(frag)-1; j && (strchr(" {};,()[].", frag[j])); j--);
 			if (frag[j+1])
 				strcpy(postJunk, frag+j+1);
 			frag[j+1]=0;