2009-05-15 00:24:39 +08:00
|
|
|
|
// The majority of the application is dedicated to building the
|
|
|
|
|
// current contribitors list by parsing the ChangeLog, it just takes
|
|
|
|
|
// one line in the main itself to report the version number.
|
|
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include <OpenThreads/Version>
|
|
|
|
|
|
|
|
|
|
#include <osg/Notify>
|
|
|
|
|
#include <osg/Version>
|
|
|
|
|
#include <osg/ArgumentParser>
|
|
|
|
|
#include <osg/ApplicationUsage>
|
|
|
|
|
|
|
|
|
|
#include <osg/Matrix>
|
|
|
|
|
#include <osg/Plane>
|
|
|
|
|
#include <osg/BoundingBox>
|
|
|
|
|
#include <osg/BoundingSphere>
|
|
|
|
|
|
|
|
|
|
#include <osgDB/fstream>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
|
#pragma setlocale("C")
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef pair<string, string> NamePair;
|
|
|
|
|
typedef map<NamePair, unsigned int> NameMap;
|
|
|
|
|
typedef vector<string> Words;
|
|
|
|
|
|
|
|
|
|
NamePair EmptyNamePair;
|
|
|
|
|
NamePair NameRobertOsfield("Robert", "Osfield");
|
|
|
|
|
NamePair NameDonBurns ("Don", "Burns");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char* validNames[] =
|
|
|
|
|
{
|
|
|
|
|
"de",
|
|
|
|
|
"den",
|
2011-02-10 22:09:04 +08:00
|
|
|
|
"van",
|
|
|
|
|
"von"
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const char* invalidNames[] =
|
|
|
|
|
{
|
|
|
|
|
"Added",
|
|
|
|
|
"AnimationPath",
|
|
|
|
|
"AnimationPathCallback",
|
|
|
|
|
"AnimationPathManipulator",
|
|
|
|
|
"ArgumentParser",
|
|
|
|
|
"AttrData",
|
|
|
|
|
"AutoTransform",
|
|
|
|
|
"AutoTransform.",
|
|
|
|
|
"Azimuth",
|
|
|
|
|
"BlenColour(Vec4",
|
|
|
|
|
"Camera",
|
|
|
|
|
"CameraBarrierCallback",
|
|
|
|
|
"CameraNode",
|
|
|
|
|
"Canvas",
|
|
|
|
|
"CluserCullingCallback",
|
|
|
|
|
"ClusterCullingCallback",
|
|
|
|
|
"CoordinateSystem",
|
|
|
|
|
"CoordinateSystemNode",
|
|
|
|
|
"CoordinateSystemNode&",
|
|
|
|
|
"CopyOp",
|
|
|
|
|
"Copyright",
|
|
|
|
|
"Core",
|
|
|
|
|
"Creator",
|
|
|
|
|
"CullCallbacks",
|
|
|
|
|
"CullingSettngs",
|
|
|
|
|
"CullVisitor",
|
|
|
|
|
"CullVistor",
|
|
|
|
|
"Cygwin",
|
|
|
|
|
"DatabasePager",
|
|
|
|
|
"DataSet",
|
|
|
|
|
"DataVariance",
|
|
|
|
|
"DeleteHandler",
|
|
|
|
|
"DisplaySettings",
|
|
|
|
|
"Drawable",
|
|
|
|
|
"DrawElementsUByte",
|
|
|
|
|
"Endian",
|
|
|
|
|
"Escape",
|
|
|
|
|
"EventQueue",
|
|
|
|
|
"Face",
|
|
|
|
|
"Files",
|
|
|
|
|
"Fixed",
|
|
|
|
|
"Fixes",
|
|
|
|
|
"FluidProgram",
|
|
|
|
|
"FontImplementation",
|
|
|
|
|
"FrameStats",
|
|
|
|
|
"Framstamp",
|
|
|
|
|
"FreeBSD",
|
|
|
|
|
"Geode",
|
|
|
|
|
"GeoemtryTechnique",
|
|
|
|
|
"GeometryTechnique",
|
|
|
|
|
"GeoSet",
|
|
|
|
|
"GraphicsContext",
|
|
|
|
|
"GraphicsContextImplementation",
|
|
|
|
|
"GraphicsThread",
|
|
|
|
|
"GraphicsWindowX11",
|
2009-12-10 20:13:13 +08:00
|
|
|
|
"GraphicsHandleX11",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"Group",
|
|
|
|
|
"Image",
|
|
|
|
|
"ImageOptions",
|
|
|
|
|
"Images",
|
|
|
|
|
"Images/SolarSystem",
|
|
|
|
|
"ImageStream",
|
|
|
|
|
"Improved",
|
|
|
|
|
"IndexBlock",
|
|
|
|
|
"IndexFaceSets",
|
|
|
|
|
"IntersectVisitor",
|
|
|
|
|
"Inventor",
|
|
|
|
|
"KdTree",
|
|
|
|
|
"KeyboardMouse",
|
|
|
|
|
"KeyboardMouseCallback",
|
|
|
|
|
"LightModel",
|
|
|
|
|
"LightPointNode",
|
|
|
|
|
"LineSegment",
|
|
|
|
|
"LineStipple",
|
|
|
|
|
"Logos",
|
|
|
|
|
"LongIDRecord",
|
2012-02-10 01:45:23 +08:00
|
|
|
|
"InputIterator",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"Make",
|
|
|
|
|
"Makefile",
|
|
|
|
|
"Material",
|
|
|
|
|
"Matrix",
|
|
|
|
|
"Matrix*",
|
|
|
|
|
"MatrixManipulator",
|
|
|
|
|
"MatrixTransform",
|
|
|
|
|
"MemoryManager",
|
|
|
|
|
"MergeGeometryVisitor",
|
|
|
|
|
"MeshRecord",
|
|
|
|
|
"Mode",
|
|
|
|
|
"Mr",
|
|
|
|
|
"Multigen",
|
|
|
|
|
"New",
|
|
|
|
|
"NewCullVisitor",
|
|
|
|
|
"NodeVisitor",
|
|
|
|
|
"Object",
|
|
|
|
|
"OpenDX",
|
|
|
|
|
"OpenSceneGraph",
|
|
|
|
|
"OpenSceneGraph-2",
|
|
|
|
|
"OpenSceneGraph-osgWidget-dev",
|
|
|
|
|
"OpenThreads",
|
|
|
|
|
"OperationThread",
|
|
|
|
|
"Optimizer",
|
|
|
|
|
"OrientationConverter",
|
|
|
|
|
"Osfields",
|
|
|
|
|
"Ouput",
|
|
|
|
|
"Output",
|
|
|
|
|
"OveralyNode",
|
|
|
|
|
"PagedLOD",
|
|
|
|
|
"PageLOD",
|
|
|
|
|
"Paging",
|
|
|
|
|
"ParentList",
|
|
|
|
|
"Performer",
|
|
|
|
|
"PickHandler",
|
|
|
|
|
"PixelDataBufferObject",
|
|
|
|
|
"PolygonStipple",
|
|
|
|
|
"PolytopeVisitor",
|
|
|
|
|
"PrimitiveIndexFunctor",
|
|
|
|
|
"Prodcuer",
|
|
|
|
|
"Producer",
|
|
|
|
|
"ProducerEventCallback",
|
|
|
|
|
"Program",
|
|
|
|
|
"Proxy",
|
|
|
|
|
"ProxyNode",
|
|
|
|
|
"Quake3",
|
|
|
|
|
"Quicktime",
|
|
|
|
|
"ReaderWriters",
|
2010-02-19 17:32:15 +08:00
|
|
|
|
"ReaderWriterTXP",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"ReentrantMutex",
|
|
|
|
|
"Referenced",
|
|
|
|
|
"ReferenceFrame",
|
|
|
|
|
"Removed",
|
|
|
|
|
"RemoveLoadedProxyNodes",
|
|
|
|
|
"RenderStage",
|
|
|
|
|
"RenderTargetFallback",
|
|
|
|
|
"RenderToTextureStage",
|
|
|
|
|
"SceneGraphBuilder",
|
|
|
|
|
"SceneView",
|
|
|
|
|
"Sequence",
|
|
|
|
|
"Shape",
|
|
|
|
|
"SimpleViewer",
|
|
|
|
|
"SimpleViewer",
|
|
|
|
|
"SmokeTrailEffect",
|
|
|
|
|
"Source",
|
2010-04-22 19:20:31 +08:00
|
|
|
|
"SoftImage",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"SpotExponent",
|
|
|
|
|
"State",
|
|
|
|
|
"StateAttribute",
|
|
|
|
|
"Stats",
|
2009-12-10 20:13:13 +08:00
|
|
|
|
"StateSet",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"StatsVisitor",
|
|
|
|
|
"Studio",
|
|
|
|
|
"Support",
|
|
|
|
|
"Switch",
|
|
|
|
|
"TechniqueEventHandler",
|
|
|
|
|
"TerraPage",
|
|
|
|
|
"TessellationHints",
|
|
|
|
|
"TestManipulator",
|
|
|
|
|
"TestSupportCallback",
|
2010-12-02 04:14:34 +08:00
|
|
|
|
"Text",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"TexEnv",
|
|
|
|
|
"TexMat(Matrix",
|
|
|
|
|
"Texture",
|
|
|
|
|
"Texture2DArray",
|
|
|
|
|
"Texture3D",
|
|
|
|
|
"TextureCubeMap",
|
|
|
|
|
"TextureObjectManager",
|
|
|
|
|
"TextureRectangle",
|
|
|
|
|
"TextureRectangle(Image*",
|
|
|
|
|
"TextureType",
|
|
|
|
|
"Texuture",
|
|
|
|
|
"TriStripVisitor",
|
|
|
|
|
"TrPageViewer",
|
|
|
|
|
"Uniform",
|
|
|
|
|
"UseFarLineSegments",
|
|
|
|
|
"UserData",
|
|
|
|
|
"Valve",
|
|
|
|
|
"Vec*",
|
|
|
|
|
"Vec2d",
|
|
|
|
|
"Vec3d",
|
|
|
|
|
"Vec4ub",
|
|
|
|
|
"Version",
|
|
|
|
|
"VertexData",
|
|
|
|
|
"View",
|
|
|
|
|
"Viewer",
|
|
|
|
|
"ViewPoint",
|
|
|
|
|
"Viewport",
|
|
|
|
|
"Viewport",
|
|
|
|
|
"Visual",
|
|
|
|
|
"VisualStudio",
|
|
|
|
|
"WindowData",
|
|
|
|
|
"Windows",
|
|
|
|
|
"X",
|
|
|
|
|
"Xcode",
|
2009-06-22 21:08:06 +08:00
|
|
|
|
"GraphicsWindowWin32",
|
|
|
|
|
"ImageLayer",
|
|
|
|
|
"Xml",
|
2009-10-10 22:50:16 +08:00
|
|
|
|
"Y",
|
2010-12-02 04:14:34 +08:00
|
|
|
|
"UpdateSkeleton",
|
|
|
|
|
"IncementalCompileOperation",
|
|
|
|
|
"Billboard",
|
2011-02-10 22:09:04 +08:00
|
|
|
|
"UpdateSkeleton",
|
|
|
|
|
"Vec3",
|
2011-06-23 19:26:51 +08:00
|
|
|
|
"Plugin",
|
2012-02-10 01:45:23 +08:00
|
|
|
|
"Get",
|
2013-02-07 16:46:44 +08:00
|
|
|
|
"LightSource",
|
|
|
|
|
"SlideEventHandler",
|
|
|
|
|
"GraphicsContext*",
|
2013-06-20 18:42:24 +08:00
|
|
|
|
"Apple",
|
2013-07-01 20:16:32 +08:00
|
|
|
|
"GeometryNew",
|
2013-10-02 03:31:48 +08:00
|
|
|
|
"FrameBufferObject",
|
|
|
|
|
"Lua",
|
2014-04-09 01:45:21 +08:00
|
|
|
|
"VolumeTile",
|
|
|
|
|
"PushStackValueVisitor",
|
|
|
|
|
"RayIntersector",
|
2014-12-18 19:36:16 +08:00
|
|
|
|
"OpenSceneGraph-Data",
|
2015-07-22 22:55:38 +08:00
|
|
|
|
"Node",
|
2016-10-07 20:56:46 +08:00
|
|
|
|
"AlphaFunc",
|
|
|
|
|
"CompositeViewer",
|
2017-03-28 18:45:05 +08:00
|
|
|
|
"OpenSceneGraph-3",
|
|
|
|
|
"DisplaySettings::SHADER_NONE",
|
|
|
|
|
"CodeDocs",
|
|
|
|
|
"Mon",
|
|
|
|
|
"Tue",
|
|
|
|
|
"Wed",
|
|
|
|
|
"Fri",
|
|
|
|
|
"Sat",
|
2017-03-28 18:50:04 +08:00
|
|
|
|
"Sun",
|
2017-05-11 23:32:13 +08:00
|
|
|
|
"I",
|
|
|
|
|
"TriangleFunctor",
|
2017-08-22 16:04:49 +08:00
|
|
|
|
"PrimitiveFunctor",
|
2017-10-30 22:05:45 +08:00
|
|
|
|
"OpenMW",
|
|
|
|
|
"StreamOperator",
|
|
|
|
|
"FindLIBLAS"
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct TypoCorrection
|
|
|
|
|
{
|
|
|
|
|
const char* original;
|
|
|
|
|
const char* corrected;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TypoCorrection typoCorrections[] =
|
|
|
|
|
{
|
2013-06-21 22:29:00 +08:00
|
|
|
|
{"Cheaev", "Chebaev"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Alaxandre", "Alexandre"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Aderian", "Adrian"},
|
|
|
|
|
{"Adndre", "Andre"},
|
|
|
|
|
{"Adrain", "Adrian"},
|
|
|
|
|
{"Amueller", "Aumueller"},
|
|
|
|
|
{"Andew", "Andrew"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"André", "Andr<EFBFBD>"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Antione", "Antoine"},
|
|
|
|
|
{"Antonoine", "Antoine"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Aurelein", "Aurelien"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Atr", "Art"},
|
|
|
|
|
{"Baverage", "Beverage"},
|
|
|
|
|
{"Bistroviae", "Bistrovic"},
|
|
|
|
|
{"Callue", "Callu"},
|
|
|
|
|
{"Christaiansen", "Christiansen"},
|
|
|
|
|
{"Cobin", "Corbin"},
|
|
|
|
|
{"Comporesi", "Camporesi"},
|
|
|
|
|
{"Connel", "Connell"},
|
|
|
|
|
{"Cullu", "Callu"},
|
|
|
|
|
{"Daneil", "Daniel"},
|
|
|
|
|
{"Daust", "Daoust"},
|
|
|
|
|
{"Daved", "David"},
|
|
|
|
|
{"Drederic", "Frederic"},
|
|
|
|
|
{"Eileman", "Eilemann"},
|
|
|
|
|
{"Elgi", "Egli"},
|
|
|
|
|
{"Fabian", "Fabien"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Fautre", "Fautr<EFBFBD>"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Frashid", "Farshid"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Farshild", "Farshid"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Fred", "Frederic"},
|
|
|
|
|
{"Fredrick", "Frederic"},
|
|
|
|
|
{"Fredric", "Frederic"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Froechlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froehilch", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froehlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froelich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froenlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Fröhlich", "Fr<EFBFBD>hlich"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Fruciel", "Frauciel"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"García", "Garcea"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Garrat", "Garrett"},
|
|
|
|
|
{"Garret", "Garrett"},
|
|
|
|
|
{"Geof", "Geoff"},
|
|
|
|
|
{"Giatan", "Gaitan"},
|
|
|
|
|
{"Gronenger", "Gronager"},
|
|
|
|
|
{"Gronger", "Gronager"},
|
|
|
|
|
{"Haritchablaet", "Haritchabalet"},
|
|
|
|
|
{"Hebelin", "Herbelin"},
|
|
|
|
|
{"Heirtlein", "Hertlein"},
|
|
|
|
|
{"Heirtlein", "Hertlein"},
|
|
|
|
|
{"Hertleinm", "Hertlein"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Happalahti", "Haapalahti"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Hertlien", "Hertlein"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Hatwig", "Hartwig"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Hauknes", "Haukness"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Hunber", "Huber"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Hi", "He"},
|
|
|
|
|
{"Hooper", "Hopper"},
|
|
|
|
|
{"Inverson", "Iverson"},
|
|
|
|
|
{"Iversion", "Iverson"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Jean-Sebastein", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastian", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastirn", "Jean-S<>bastien"},
|
|
|
|
|
{"Jea-Sebastien", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebasien", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastien", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebestien", "Jean-S<>bastien"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Johhansen", "Johansen"},
|
|
|
|
|
{"Johnansen", "Johansen"},
|
|
|
|
|
{"Johnasen", "Johansen"},
|
|
|
|
|
{"Jolly", "Jolley"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Jose", "Jos<EFBFBD>"},
|
|
|
|
|
{"José", "Jos<EFBFBD>"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Joson", "Jason"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"J", "Jos<EFBFBD>"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Keuhne", "Kuehne"},
|
|
|
|
|
{"Kheune", "Kuehne"},
|
2009-12-10 20:13:13 +08:00
|
|
|
|
{"Krulthof", "Kruithof"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Lagrade", "Lagarde"},
|
2009-06-22 20:46:51 +08:00
|
|
|
|
{"Largade", "Lagarde"},
|
2015-04-20 18:41:45 +08:00
|
|
|
|
{"Largarde", "Lagarde"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Larshkari", "Lashkari"},
|
|
|
|
|
{"Lashakari", "Lashkari"},
|
|
|
|
|
{"Lashari", "Lashkari"},
|
|
|
|
|
{"Lasharki", "Lashkari"},
|
|
|
|
|
{"Laskari", "Lashkari"},
|
|
|
|
|
{"Leandowski", "Lewandowski"},
|
|
|
|
|
{"Lawandowski", "Lewandowski"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Luacas", "Luaces"},
|
|
|
|
|
{"Luacas", "Luaces"},
|
|
|
|
|
{"Liech", "Leich"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Lownman", "Lowman"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Lugi", "Luigi"},
|
|
|
|
|
{"Lweandowski", "Lewandowski"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Lavingotte", "Lavignotte"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Maceij", "Maciej"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Machler", "M<EFBFBD>chler"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Macro", "Marco"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Maechler", "M<EFBFBD>chler"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Mahai", "Mihai"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Magnes", "Magnus"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Mammond", "Marmond"},
|
|
|
|
|
{"March", "Marco"},
|
|
|
|
|
{"Martsz", "Martz"},
|
|
|
|
|
{"Marz", "Martz"},
|
|
|
|
|
{"Matz", "Martz"},
|
|
|
|
|
{"Melchoir", "Melchior"},
|
|
|
|
|
{"Mellis", "Melis"},
|
|
|
|
|
{"Messerschimdt", "Messerschmidt"},
|
|
|
|
|
{"Micheal", "Michael"},
|
|
|
|
|
{"Mihair", "Mihai"},
|
|
|
|
|
{"Molishtan", "Moloshtan"},
|
|
|
|
|
{"Molishtan", "Moloshtan"},
|
|
|
|
|
{"Moloshton", "Moloshtan"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Morné", "Morn<EFBFBD>"},
|
|
|
|
|
{"Morne", "Morn<EFBFBD>"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Moule", "Moiule"},
|
|
|
|
|
{"Narache", "Marache"},
|
|
|
|
|
{"Nicklov", "Nikolov"},
|
|
|
|
|
{"Nickolov", "Nikolov"},
|
2010-02-19 17:32:15 +08:00
|
|
|
|
{"Nilson", "Nilsson"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Olad", "Olaf"},
|
|
|
|
|
{"Olar", "Olaf"},
|
|
|
|
|
{"Oritz", "Ortiz"},
|
|
|
|
|
{"Osfeld", "Osfield"},
|
|
|
|
|
{"Osfied", "Osfield"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Paulk", "Paul"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Pail", "Paul"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Perciva", "Peciva"},
|
|
|
|
|
{"Pecvia", "Peciva"},
|
|
|
|
|
{"Priyadashi", "Priyadarshi"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Rajce", "Trajce"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Raymon", "Raymond"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Randal", "Randall"},
|
|
|
|
|
{"Robet", "Robert"},
|
|
|
|
|
{"Rodger", "Roger"},
|
|
|
|
|
{"Rolad", "Roland"},
|
2009-07-16 18:13:13 +08:00
|
|
|
|
{"Riddel", "Riddell"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Rucard", "Richard"},
|
|
|
|
|
{"Sekender", "Sukender"},
|
|
|
|
|
{"Sewel", "Sewell"},
|
|
|
|
|
{"Simmonson", "Simonsson"},
|
|
|
|
|
{"Simmonsson", "Simonsson"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Sjolie", "Sj<EFBFBD>lie"},
|
|
|
|
|
{"Sjölie", "Sj<EFBFBD>lie"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Skinnder", "Skinner"},
|
2010-02-19 17:32:15 +08:00
|
|
|
|
{"Seberion", "Seberino"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Sokolosky", "Sokolowsky"},
|
|
|
|
|
{"Sokolowky", "Sokolowsky"},
|
|
|
|
|
{"Sokolowki", "Sokolowsky"},
|
|
|
|
|
{"Sokolowski", "Sokolowsky"},
|
|
|
|
|
{"Sokolsky", "Sokolowsky"},
|
|
|
|
|
{"Sokolwsky", "Sokolowsky"},
|
|
|
|
|
{"Sonda", "Sondra"},
|
|
|
|
|
{"Stansilav", "Stanislav"},
|
|
|
|
|
{"Stefan", "Stephan"},
|
|
|
|
|
{"Stell", "Steel"},
|
|
|
|
|
{"Sylvan", "Sylvain"},
|
|
|
|
|
{"Takeahei", "Takahei"},
|
|
|
|
|
{"Takehei", "Takahei"},
|
2009-07-16 18:13:13 +08:00
|
|
|
|
{"Tery", "Terry"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Tarantilils", "Tarantilis"},
|
|
|
|
|
{"Trastenjak", "Trstenjak"},
|
|
|
|
|
{"Urlich", "Ulrich"},
|
|
|
|
|
{"Vines", "Vine"},
|
|
|
|
|
{"Waldrom", "Waldron"},
|
|
|
|
|
{"Wedner", "Weidner"},
|
|
|
|
|
{"Weidemann", "Wiedemann"},
|
|
|
|
|
{"Wieblen", "Weiblen"},
|
|
|
|
|
{"Woesnner", "Woessner"},
|
|
|
|
|
{"Wojchiech", "Wojciech"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Wojcoech", "Wojciech"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Wojiech", "Wojciech"},
|
|
|
|
|
{"Xennon", "Hanson"},
|
|
|
|
|
{"Yefrei", "Yefei"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Yfei", "Yefei"},
|
|
|
|
|
{"Gurhrie", "Guthrie"},
|
2010-09-17 22:26:27 +08:00
|
|
|
|
{"Byran", "Bryan"},
|
|
|
|
|
{"Fielder", "Fiedler"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Mathia", "Mathias"},
|
|
|
|
|
{"Halgarth", "Hogarth"},
|
2011-02-10 22:09:04 +08:00
|
|
|
|
{"Katherina", "Katharina"},
|
|
|
|
|
{"Biyfarguine", "Boufarguine"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Dickenson", "Dickinson"},
|
|
|
|
|
{"Jahannes","Johannes"},
|
2011-06-27 23:43:33 +08:00
|
|
|
|
{"Eskland","Ekstrand"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Baeuerele","Baeuerle"},
|
2012-02-29 22:01:44 +08:00
|
|
|
|
{"Bauerle","Baeuerle"},
|
2013-10-04 00:20:29 +08:00
|
|
|
|
{"Baeurele","Baeuerle"},
|
|
|
|
|
{"Nillson","Nilsson"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Bjorn","Bj<EFBFBD>rn"},
|
|
|
|
|
{"Björn","Bj<EFBFBD>rn"},
|
2014-04-09 01:45:21 +08:00
|
|
|
|
{"Stepan","Stephan"},
|
|
|
|
|
{"Kristoger","Kristofer"},
|
|
|
|
|
{"Blessing","Blissing"},
|
|
|
|
|
{"Dannahuer","Dannhauer"},
|
2014-05-23 23:00:49 +08:00
|
|
|
|
{"Chebeav", "Chebaev"},
|
2014-12-18 19:36:16 +08:00
|
|
|
|
{"Messershmidt","Messerschmidt"},
|
2014-12-24 19:56:48 +08:00
|
|
|
|
{"Auelien","Aurelien"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Aurélien","Aur<EFBFBD>lien"},
|
2015-03-03 23:26:15 +08:00
|
|
|
|
{"McDonnel","Mc Donnell"},
|
2015-02-27 01:18:31 +08:00
|
|
|
|
{"McDonnell","Mc Donnell"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Delallée","Delall<EFBFBD>e"},
|
|
|
|
|
{"Gjøl","Gj<EFBFBD>l"},
|
|
|
|
|
{"Ravšelj","Rav<EFBFBD>elj"},
|
|
|
|
|
{"Ravsel", "Rav<EFBFBD>elj"},
|
|
|
|
|
{"Ravselj", "Rav<EFBFBD>elj"},
|
2015-04-20 18:41:45 +08:00
|
|
|
|
{"Janik", "Jannik"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Viganò", "Vigan<EFBFBD>"},
|
|
|
|
|
{"Vigano", "Vigan<EFBFBD>"},
|
2017-03-28 18:45:05 +08:00
|
|
|
|
{"Frashud", "Farshid"},
|
2017-08-22 18:58:49 +08:00
|
|
|
|
{"Dannahauer","Dannahauer"},
|
|
|
|
|
{"Sando","Sandro"}
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct NameCorrection
|
|
|
|
|
{
|
|
|
|
|
const char* originalFirst;
|
|
|
|
|
const char* originalSecond;
|
|
|
|
|
const char* correctedFirst;
|
|
|
|
|
const char* correctedSecond;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
NameCorrection nameCorrections[] =
|
|
|
|
|
{
|
2016-10-07 20:56:46 +08:00
|
|
|
|
{"LaurensVoerman","Meta_Shape",
|
|
|
|
|
"Laurens", "Voerman"},
|
2017-03-28 18:45:05 +08:00
|
|
|
|
{"LaurensVoerman","OpenCascade",
|
|
|
|
|
"Laurens", "Voerman"},
|
2016-10-07 20:56:46 +08:00
|
|
|
|
{"LaurensVoerman","Fri",
|
|
|
|
|
"Laurens", "Voerman"},
|
|
|
|
|
{"LaurensVoerman","",
|
|
|
|
|
"Laurens", "Voerman"},
|
|
|
|
|
{"Laurens","Loerman",
|
|
|
|
|
"Laurens", "Voerman"},
|
2013-06-21 22:29:00 +08:00
|
|
|
|
{"FrancoisTigeot","",
|
|
|
|
|
"Francois", "Tigeot"},
|
2013-06-20 18:42:24 +08:00
|
|
|
|
{"Juan","Manuel",
|
|
|
|
|
"Juan", "Manuel Alvarez"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Jaap","Gas",
|
|
|
|
|
"Jaap", "Glas"},
|
2011-07-21 17:55:03 +08:00
|
|
|
|
{"Philip","Lamp",
|
|
|
|
|
"Philip", "Lamb"},
|
2011-06-23 19:26:51 +08:00
|
|
|
|
{"Dimi","Christop",
|
|
|
|
|
"Dimi", "Christopoulos"},
|
2011-06-17 19:47:33 +08:00
|
|
|
|
{"Jorge","Ciges",
|
2013-05-26 18:44:11 +08:00
|
|
|
|
"Jorge", "Izquierdo Ciges"},
|
|
|
|
|
{"Jorge","Izquierdo",
|
|
|
|
|
"Jorge", "Izquierdo Ciges"},
|
2011-05-30 23:43:18 +08:00
|
|
|
|
{"Rafa","Gata",
|
|
|
|
|
"Rafa", "Gaitan"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Sukender","I",
|
|
|
|
|
"Sukender", ""},
|
|
|
|
|
{"Sukender","Here",
|
|
|
|
|
"Sukender", ""},
|
2013-05-27 17:07:53 +08:00
|
|
|
|
{"Sukender","Fix",
|
|
|
|
|
"Sukender", ""},
|
2011-02-24 00:49:38 +08:00
|
|
|
|
{"Ewe","Woessner",
|
|
|
|
|
"Uwe", "Woessner"},
|
2011-02-10 22:09:04 +08:00
|
|
|
|
{"Martin","von",
|
|
|
|
|
"Martin", "von Gargern"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Alexandre","Irion",
|
|
|
|
|
"Alexander", "Irion"},
|
|
|
|
|
{"WojciechLewandowski","",
|
|
|
|
|
"Wojciech", "Lewandowski"},
|
|
|
|
|
{"Marin", "Platings",
|
|
|
|
|
"Michael", "Platings"},
|
|
|
|
|
{"Tomas", "Holgarth",
|
|
|
|
|
"Thomas", "Hogarth"},
|
2010-09-17 22:26:27 +08:00
|
|
|
|
{"Marin", "Lavery",
|
|
|
|
|
"Martin", "Lavery"},
|
2013-05-29 00:39:48 +08:00
|
|
|
|
{"Michael", "Bach",
|
|
|
|
|
"Michael", "Bach Jensen"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Nguyen", "Van",
|
|
|
|
|
"Nguyen", "Van Truong"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Thom", "Carlo",
|
|
|
|
|
"Thom", "DeCarlo"},
|
|
|
|
|
{"Stephan", "Lamoliatte",
|
|
|
|
|
"Stephane", "Lamoliatte"},
|
|
|
|
|
{"Ronald", "van",
|
|
|
|
|
"Ronald", "van Maarseveen"},
|
|
|
|
|
{"Lee", "Bulter",
|
|
|
|
|
"Lee", "Butler"},
|
|
|
|
|
{"Tery", "Welsh",
|
|
|
|
|
"Terry", "Welsh"},
|
|
|
|
|
{"Cesar", "L",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"C<EFBFBD>sar", "L. B. Silveira"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Marc", "Sciabica",
|
|
|
|
|
"Mark", "Sciabica"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Tom", "Moore",
|
|
|
|
|
"Tim", "Moore"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Time", "Moore",
|
|
|
|
|
"Tim", "Moore"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Jean", "Sebastien",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Jean-S<>bastien", "Guay"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Michale", "Platings",
|
|
|
|
|
"Michael", "Platings"},
|
|
|
|
|
{"Mick", "",
|
|
|
|
|
"Maik", "Keller"},
|
|
|
|
|
{"Gary", "Quin",
|
|
|
|
|
"Gary", "Quinn"},
|
|
|
|
|
{"BjornHein", "",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Bj<EFBFBD>rn", "Hein"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Bjorn", "Hein",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Bj<EFBFBD>rn", "Hein"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Erik", "van",
|
|
|
|
|
"Erik", "den Dekker"},
|
|
|
|
|
{"Erik", "den",
|
|
|
|
|
"Erik", "den Dekker"},
|
|
|
|
|
{"Jeoen", "den",
|
|
|
|
|
"Jeroen", "den Dekker"},
|
|
|
|
|
{"John", "Vidar",
|
|
|
|
|
"John", "Vidar Larring"},
|
|
|
|
|
{"John", "Vida",
|
|
|
|
|
"John", "Vidar Larring"},
|
|
|
|
|
{"Sebastien", "Messerschmidt",
|
|
|
|
|
"Sebastian", "Messerschmidt"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Mattias", "Fr<EFBFBD>hlich",
|
|
|
|
|
"Mathias", "Fr<EFBFBD>hlich"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Mathias", "Helsing",
|
|
|
|
|
"Mattias", "Helsing"},
|
|
|
|
|
{"Jose", "Delport",
|
|
|
|
|
"J.P.", "Delport"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Jos<EFBFBD>", "Delport",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"J.P.", "Delport"},
|
|
|
|
|
{"Franz", "Melchior",
|
|
|
|
|
"Melchior", "Franz"},
|
|
|
|
|
{"Glen", "Waldon",
|
|
|
|
|
"Glenn", "Waldron"},
|
2014-11-20 01:29:15 +08:00
|
|
|
|
{"Glen", "Waldron",
|
|
|
|
|
"Glenn", "Waldron"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Ralf", "Karn",
|
|
|
|
|
"Ralf", "Kern"},
|
|
|
|
|
{"Donny", "Cipperly",
|
|
|
|
|
"Donald", "Cipperly"},
|
|
|
|
|
{"Gino", "van",
|
|
|
|
|
"Gino", "van den Bergen"},
|
|
|
|
|
{"Radu", "Mihai",
|
|
|
|
|
"Mihai", "Radu"},
|
|
|
|
|
{"Art", "Trevs",
|
|
|
|
|
"Art", "Tevs"},
|
|
|
|
|
{"Tim", "More",
|
|
|
|
|
"Tim", "Moore"},
|
|
|
|
|
{"Andre", "Garneau",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Andr<EFBFBD>", "Garneau"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Eric", "Hammil",
|
|
|
|
|
"Chris", "Hanson"},
|
|
|
|
|
{"Paul", "de",
|
|
|
|
|
"Paul", "de Repentigny"},
|
|
|
|
|
{"Raymond", "de",
|
|
|
|
|
"Raymond", "de Vries"},
|
|
|
|
|
{"Nick", "",
|
|
|
|
|
"Trajce", "Nikolov"},
|
|
|
|
|
{"Daniel", "",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Daniel", "Sj<EFBFBD>lie"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Julia", "Ortiz",
|
|
|
|
|
"Julian", "Ortiz"},
|
|
|
|
|
{"Rune", "Schmidt",
|
|
|
|
|
"Rune", "Schmidt Jensen"},
|
2015-07-23 01:01:03 +08:00
|
|
|
|
{"Romano", "Jos<EFBFBD>",
|
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Rommano", "Silva",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
2013-10-04 00:20:29 +08:00
|
|
|
|
{"Romano", "Magacho",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Leandro", "Motta",
|
|
|
|
|
"Leandro", "Motta Barros"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Leandro", "Motto",
|
|
|
|
|
"Leandro", "Motta Barros"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"A", "Botorabi",
|
|
|
|
|
"Ali", "Botorabi"},
|
|
|
|
|
{"Waltice", "",
|
|
|
|
|
"Walter", "J. Altice"},
|
|
|
|
|
{"Drew", "",
|
|
|
|
|
"Drew", "Whitehouse"},
|
|
|
|
|
{"Douglas", "A",
|
|
|
|
|
"Douglas", "A. Pouk"},
|
|
|
|
|
{"Colin", "MacDonald",
|
|
|
|
|
"Colin", "McDonald"},
|
|
|
|
|
{"Nikolov", "Trajce",
|
|
|
|
|
"Trajce", "Nikolov"},
|
|
|
|
|
{"Frauciel", "Luc",
|
|
|
|
|
"Luc", "Frauciel"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Alberto", "Lucas",
|
|
|
|
|
"Alberto", "Luaces"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Alberto", "Luacus",
|
|
|
|
|
"Alberto", "Luaces"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Tyge", "",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Tyge", "L<EFBFBD>vset"},
|
2010-09-17 22:26:27 +08:00
|
|
|
|
{"Ricard", "Schmidt",
|
2014-05-23 23:00:49 +08:00
|
|
|
|
"Richard", "Schmidt"},
|
|
|
|
|
{"Matthias", "Helsing",
|
2014-11-20 01:29:15 +08:00
|
|
|
|
"Mattias", "Helsing"},
|
|
|
|
|
{"Clement", "Boesch",
|
2015-07-23 01:01:03 +08:00
|
|
|
|
"Cl<EFBFBD>ment", "B<EFBFBD>sch"},
|
2014-12-18 19:36:16 +08:00
|
|
|
|
{"Lauren", "Voerman",
|
|
|
|
|
"Laurens", "Voerman"},
|
|
|
|
|
{"Pjotr", "Sventachov",
|
2015-02-27 01:18:31 +08:00
|
|
|
|
"Pjotr", "Svetachov"},
|
2015-02-27 03:51:56 +08:00
|
|
|
|
{"Bradley", "Baker",
|
|
|
|
|
"Bradley", "Baker Searles"},
|
|
|
|
|
{"PawelKsiezopolski", "",
|
2015-06-04 17:35:19 +08:00
|
|
|
|
"Pawel", "Ksiezopolski"},
|
|
|
|
|
{"Albert", "Luaces",
|
|
|
|
|
"Alberto","Luaces"},
|
|
|
|
|
{"KOS", "",
|
|
|
|
|
"Konstantin","Matveyev"},
|
|
|
|
|
{"WeSee", "",
|
|
|
|
|
"Alois", "Wismer"},
|
|
|
|
|
{"We", "See",
|
2017-10-09 19:23:45 +08:00
|
|
|
|
"Alois", "Wismer"},
|
|
|
|
|
{"AnyOldName3", "",
|
|
|
|
|
"Chris", "Djali"}
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool validName(const string& first)
|
|
|
|
|
{
|
|
|
|
|
// Check for valid names
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(validNames) / sizeof(char*); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (first == validNames[i])
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (first.empty()) return false;
|
|
|
|
|
|
|
|
|
|
if (first[0] < 'A' || first[0] > 'Z') return false;
|
|
|
|
|
|
|
|
|
|
if (first.size() >= 2 && (first[1] < 'a' || first[1] > 'z') && (first[1] != '.') && (first[1] != ',')) return false;
|
|
|
|
|
|
|
|
|
|
// Check for invalid names
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(invalidNames) / sizeof(char*); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (first == invalidNames[i])
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Default to a valid name
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string typoCorrection(const string& name)
|
|
|
|
|
{
|
|
|
|
|
// Loop over all known typo corrections
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(typoCorrections) / sizeof(TypoCorrection); ++i)
|
|
|
|
|
{
|
|
|
|
|
// If a typo is found
|
|
|
|
|
if (name == typoCorrections[i].original)
|
|
|
|
|
{
|
|
|
|
|
// Return the correction
|
|
|
|
|
return typoCorrections[i].corrected;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void nameCorrection(NamePair& name)
|
|
|
|
|
{
|
|
|
|
|
// Loop over all known name corrections
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(nameCorrections) / sizeof(NameCorrection); ++i)
|
|
|
|
|
{
|
|
|
|
|
// If a matching name is found
|
|
|
|
|
if (name.first == nameCorrections[i].originalFirst &&
|
|
|
|
|
name.second == nameCorrections[i].originalSecond)
|
|
|
|
|
{
|
|
|
|
|
// Return the correction
|
|
|
|
|
name.first = nameCorrections[i].correctedFirst;
|
|
|
|
|
name.second = nameCorrections[i].correctedSecond;
|
|
|
|
|
|
|
|
|
|
// Early out, since we don't want corrections of corrections
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void lastValidCharacter(const string& name, unsigned int& pos, char c)
|
|
|
|
|
{
|
|
|
|
|
for (unsigned int i = 0; i < pos; ++i)
|
|
|
|
|
{
|
|
|
|
|
if (name[i] == c)
|
|
|
|
|
{
|
|
|
|
|
pos = i;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void lastValidCharacter(const string& name, unsigned int& last)
|
|
|
|
|
{
|
|
|
|
|
lastValidCharacter(name, last, '.');
|
|
|
|
|
lastValidCharacter(name, last, ',');
|
|
|
|
|
lastValidCharacter(name, last, '\'');
|
|
|
|
|
lastValidCharacter(name, last, '/');
|
|
|
|
|
lastValidCharacter(name, last, '\\');
|
|
|
|
|
lastValidCharacter(name, last, ':');
|
|
|
|
|
lastValidCharacter(name, last, ';');
|
|
|
|
|
lastValidCharacter(name, last, ')');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NamePair createName(const string& first, const string& second)
|
|
|
|
|
{
|
|
|
|
|
if (first.empty()) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
// cout << "first = " << first << " second = " << second << endl;
|
|
|
|
|
|
|
|
|
|
unsigned int last = first.size();
|
|
|
|
|
lastValidCharacter(first, last);
|
|
|
|
|
|
|
|
|
|
if (last == 0) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
string name;
|
|
|
|
|
|
|
|
|
|
name.append(first.begin(), first.begin() + last);
|
|
|
|
|
|
|
|
|
|
if (!validName(name)) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
name = typoCorrection(name);
|
|
|
|
|
|
|
|
|
|
if (second.empty() ||
|
|
|
|
|
!validName(second))
|
|
|
|
|
{
|
|
|
|
|
// filter any single or two letter words as unlike to be names.
|
|
|
|
|
if (name.size() <= 2) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
return NamePair(name, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
last = second.size();
|
|
|
|
|
|
|
|
|
|
lastValidCharacter(second, last);
|
|
|
|
|
|
|
|
|
|
if (last > 0)
|
|
|
|
|
{
|
|
|
|
|
string surname(second.begin(), second.begin() + last);
|
|
|
|
|
|
|
|
|
|
if (validName(surname))
|
|
|
|
|
{
|
|
|
|
|
surname = typoCorrection(surname);
|
|
|
|
|
return NamePair(name, surname);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// filter any single or two letter words as unlike to be names.
|
|
|
|
|
if (name.size() <= 2) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
return NamePair(name, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool submissionsSequence(const Words& words, unsigned int& i)
|
|
|
|
|
{
|
|
|
|
|
if (i + 1 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "From" ||
|
|
|
|
|
words[i] == "from" ||
|
|
|
|
|
words[i] == "From:" ||
|
|
|
|
|
words[i] == "from:" ||
|
|
|
|
|
words[i] == "Merged" ||
|
|
|
|
|
words[i] == "Integrated") return true;
|
|
|
|
|
|
|
|
|
|
if (i + 2 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "submitted" && words[i + 1] == "by")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Folded" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Rolled" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Checked" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (i + 3 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "sent" && words[i + 1] == "in" && words[i + 2] == "by")
|
|
|
|
|
{
|
|
|
|
|
i += 2;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void readContributors(NameMap& names, const string& file)
|
|
|
|
|
{
|
|
|
|
|
osgDB::ifstream fin(file.c_str());
|
|
|
|
|
|
|
|
|
|
Words words;
|
|
|
|
|
while(fin)
|
|
|
|
|
{
|
|
|
|
|
string keyword;
|
|
|
|
|
fin >> keyword;
|
|
|
|
|
words.push_back(keyword);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string blank_string;
|
|
|
|
|
|
|
|
|
|
for(unsigned int i = 0; i < words.size(); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (submissionsSequence(words, i))
|
|
|
|
|
{
|
|
|
|
|
if (i + 2 < words.size() && validName(words[i + 1]))
|
|
|
|
|
{
|
|
|
|
|
NamePair name = createName(words[i + 1], words[i + 2]);
|
|
|
|
|
nameCorrection(name);
|
|
|
|
|
if (!name.first.empty()) ++names[name];
|
|
|
|
|
i += 2;
|
|
|
|
|
}
|
|
|
|
|
else if (i + 1 < words.size() && validName(words[i + 1]))
|
|
|
|
|
{
|
|
|
|
|
NamePair name = createName(words[i + 1], blank_string);
|
|
|
|
|
nameCorrection(name);
|
|
|
|
|
if (!name.first.empty()) ++names[name];
|
|
|
|
|
i += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (words[i] == "robert")
|
|
|
|
|
{
|
|
|
|
|
++names[NameRobertOsfield];
|
|
|
|
|
}
|
|
|
|
|
else if (words[i] == "don")
|
|
|
|
|
{
|
|
|
|
|
++names[NameDonBurns];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// reassign fisrt name entries to their full names entries
|
|
|
|
|
if (names.size() > 1)
|
|
|
|
|
{
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); )
|
|
|
|
|
{
|
|
|
|
|
if (itr->first.second.empty())
|
|
|
|
|
{
|
|
|
|
|
NameMap::iterator next_itr = itr;
|
|
|
|
|
++next_itr;
|
|
|
|
|
|
|
|
|
|
if (next_itr != names.end() && itr->first.first == next_itr->first.first)
|
|
|
|
|
{
|
|
|
|
|
next_itr->second += itr->second;
|
|
|
|
|
names.erase(itr);
|
|
|
|
|
itr = next_itr;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
++itr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
++itr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// remove the double entries from Robert's contributions
|
|
|
|
|
if (names.size() > 1)
|
|
|
|
|
{
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); ++itr)
|
|
|
|
|
{
|
|
|
|
|
if (itr->first != NameRobertOsfield && itr->first != NameDonBurns)
|
|
|
|
|
{
|
|
|
|
|
names[NameRobertOsfield] -= itr->second;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void buildContributors(NameMap& names)
|
|
|
|
|
{
|
|
|
|
|
// top five contributors
|
|
|
|
|
++names[NamePair("Robert", "Osfield")];
|
|
|
|
|
++names[NamePair("Don", "Burns")];
|
|
|
|
|
++names[NamePair("Marco", "Jez")];
|
|
|
|
|
++names[NamePair("Mike", "Weiblen")];
|
|
|
|
|
++names[NamePair("Geoff", "Michel")];
|
|
|
|
|
++names[NamePair("Ben", "van Basten")];
|
|
|
|
|
|
|
|
|
|
// contributors that don't appear in the ChangeLog due to their contributions
|
|
|
|
|
// being before CVS started for the OSG, or before the name logging began.
|
|
|
|
|
++names[NamePair("Karsten", "Weiss")];
|
|
|
|
|
++names[NamePair("Graeme", "Harkness")];
|
|
|
|
|
++names[NamePair("Axel", "Volley")];
|
|
|
|
|
++names[NamePair("Nikolaus", "Hanekamp")];
|
|
|
|
|
++names[NamePair("Kristopher", "Bixler")];
|
2015-07-23 01:01:03 +08:00
|
|
|
|
++names[NamePair("Tanguy", "Fautr<EFBFBD>")];
|
2009-05-15 00:24:39 +08:00
|
|
|
|
++names[NamePair("J.E.", "Hoffmann")];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void printContributors(const std::string& changeLog, bool printNumEntries)
|
|
|
|
|
{
|
|
|
|
|
NameMap names;
|
|
|
|
|
buildContributors(names);
|
|
|
|
|
if (!changeLog.empty())
|
|
|
|
|
{
|
|
|
|
|
readContributors(names, changeLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
typedef multimap<unsigned int, NamePair> SortedNameMap;
|
|
|
|
|
|
|
|
|
|
SortedNameMap sortedNames;
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); ++itr)
|
|
|
|
|
{
|
|
|
|
|
sortedNames.insert(SortedNameMap::value_type(itr->second, itr->first));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cout << names.size() << " Contributors:" << endl << endl;
|
|
|
|
|
|
|
|
|
|
if (printNumEntries)
|
|
|
|
|
{
|
|
|
|
|
cout << "Entries Firstname Surname" << endl;
|
|
|
|
|
cout << "-------------------------" << endl;
|
|
|
|
|
for (SortedNameMap::reverse_iterator sitr = sortedNames.rbegin(); sitr != sortedNames.rend(); ++sitr)
|
|
|
|
|
{
|
2015-02-27 17:47:58 +08:00
|
|
|
|
cout << sitr->first << "\t" << sitr->second.first;
|
|
|
|
|
if (!sitr->second.second.empty()) cout << " " << sitr->second.second;
|
|
|
|
|
cout << endl;
|
2009-05-15 00:24:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cout << "Firstname Surname" << endl;
|
|
|
|
|
cout << "-----------------" << endl;
|
|
|
|
|
for (SortedNameMap::reverse_iterator sitr = sortedNames.rbegin(); sitr != sortedNames.rend(); ++sitr)
|
|
|
|
|
{
|
2015-02-27 17:47:58 +08:00
|
|
|
|
cout << sitr->second.first;
|
|
|
|
|
if (!sitr->second.second.empty()) cout << " " << sitr->second.second;
|
|
|
|
|
cout << endl;
|
2009-05-15 00:24:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|