ICU-1007 temporarily add N+/N- command line option to select the new/old normalization code
X-SVN-Rev: 5036
This commit is contained in:
parent
42c2ec7dc8
commit
f0a283151e
@ -32,6 +32,9 @@
|
||||
# include <console.h>
|
||||
#endif
|
||||
|
||||
/* ### TODO: remove when the new normalization implementation is finished */
|
||||
#include "unormimp.h"
|
||||
|
||||
U_CAPI void U_EXPORT2 ucnv_orphanAllConverters();
|
||||
|
||||
static char* _testDirectory=NULL;
|
||||
@ -89,6 +92,13 @@ int main(int argc, const char* const argv[])
|
||||
|
||||
fprintf(stdout, "Default locale for this run is %s\n", uloc_getDefault());
|
||||
|
||||
/* ### TODO: remove when the new normalization implementation is finished */
|
||||
if(argc>1 && argv[1][0]=='N') {
|
||||
unorm_setNewImplementation((UBool)(argv[1][1]=='+'));
|
||||
++argv;
|
||||
--argc;
|
||||
}
|
||||
|
||||
root = NULL;
|
||||
addAllTests(&root);
|
||||
nerrors = processArgs(root, argc, argv);
|
||||
|
@ -32,6 +32,9 @@
|
||||
#include "Files.h"
|
||||
#endif
|
||||
|
||||
/* ### TODO: remove when the new normalization implementation is finished */
|
||||
#include "unormimp.h"
|
||||
|
||||
static char* _testDirectory=NULL;
|
||||
|
||||
// Static list of errors found
|
||||
@ -916,6 +919,13 @@ main(int argc, char* argv[])
|
||||
UBool name = FALSE;
|
||||
UBool leaks = FALSE;
|
||||
|
||||
/* ### TODO: remove when the new normalization implementation is finished */
|
||||
if(argc>1 && argv[1][0]=='N') {
|
||||
unorm_setNewImplementation((UBool)(argv[1][1]=='+'));
|
||||
++argv;
|
||||
--argc;
|
||||
}
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (argv[i][0] == '-') {
|
||||
const char* str = argv[i] + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user