~strahinja/poe

ref: v1.4.5 poe/wrap_next_line_logic -rw-r--r-- 1.8 KiB
1f716ca7Страхиња Радић po.c: Check msgstr != NULL 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
                                                                                
          01234567890123456789012345678901234567                                
                        | wrap = 13                                             
         "Quickbrown fox|umps overthesleepy dog."                               
          ^        ^^   |                                                       
          |        ||   ps = 14 > start + (wrap = 13)                           
          |        |`------ start + last_nonblank + 1 = 10                      
          |        last_nonblank = 9                                            
          start                                                                 
                                                                                
                                       | wrap = 28                              
         "Quickbrown foxjumps overthesl|epy dog."                               
          ^        ^        ^          |                                        
          |        |        |          ps = 29 > start + (wrap = 28)           
          |        |        new last_nonblank = 18                              
          |        last_nonblank = 9                                            
          start