OSDN Git Service

2005-09-01 Laurent Pautet <pautet@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2005 07:54:36 +0000 (07:54 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Sep 2005 07:54:36 +0000 (07:54 +0000)
commit8a2fc7f3949873ca97069d89a39e48a8982b6b68
treef3eddae0a34f03ac34645de2578dee1479b775a1
parent40668b4e28a7ad4b215b6314b38dd0879e7d527a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103867 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/g-pehage.adb
gcc/ada/g-pehage.ads