converting to/from char[]/string

mark mark at qtrac.eu
Thu Mar 5 12:58:27 UTC 2020


I changed int to size_t and used const(char[]) etc. as suggested.
It ran but crashed. Each crash was a range violation, so for each 
one I put in a guard so instead of

if ( ... m_b[m_k])

I used

if (m_k < m_b.length && ... m_b[m_k)

I did this kind of fix in three places.

The result is that it does some but not all the stemming!

Anyway, I'll compare it with the Python version and see if I can 
spot the problem(s).

Thanks.


More information about the Digitalmars-d-learn mailing list