g-pehage.ads, [...] (Select_Char_Position): When no character position set is provided...
authorLaurent Pautet <pautet@adacore.com>
Mon, 5 Sep 2005 07:54:36 +0000 (09:54 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 5 Sep 2005 07:54:36 +0000 (09:54 +0200)
commit1f5a932436112de4e93366915c8dbc77a8f821ff
treef3eddae0a34f03ac34645de2578dee1479b775a1
parentdd52e06aa0e9341c1123de64c7ff2b46b60b7ba3
g-pehage.ads, [...] (Select_Char_Position): When no character position set is provided...

2005-09-01  Laurent Pautet  <pautet@adacore.com>

* g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
position set is provided, we compute one in order to reduce the maximum
length of the keys.  This computation first selects a character
position between 1 and the minimum length of the keys in order to
avoid reducing one of the keys to an empty string.
(Initialize, Compute): When the ratio V to K is too low, the algorithm
does not converge. The initialization procedure now comes with a
maximum number of iterations such that when exceeded, an exception is
raised in Compute. The user can initialize this ratio to another value
and try again
Reformating and updated headers.

From-SVN: r103867
gcc/ada/g-pehage.adb
gcc/ada/g-pehage.ads