Closed mta452 closed 3 years ago
Sorry, it does not look like a good idea to me. It will increase coupling among the code, and, besides, since the different kind breaks can happen at the same time, you need bit masks instead of allocating different values in order to allow them to work on the same array.
I propose to optimize the usage of memory with following points.
GRAPHEMEBREAK
values 1-3 , makeLINEBREAK
values 4-7 , andWORDBREAK
values 8-10