Revision | b8b2b094390306c7ba4baa1bf7732e08599de4c2 (tree) |
---|---|
Zeit | 2017-08-19 23:47:29 |
Autor | <exeal@user...> |
.
@@ -379,22 +379,22 @@ | ||
379 | 379 | * <h3>Insertion</h3> |
380 | 380 | * When "DEF" is inserted between "abc" and "ghi" ('|' is the position to update): |
381 | 381 | * <table> |
382 | - * <tr><th>Gravity</th><th>Before</th><th>After</th></tr> | |
383 | - * <tr><td>Any</td><td><code>a b|c g h i</code></td><td><code>a b|c <em>D E F</em> g h i</code></td></tr> | |
384 | - * <tr><td>Direction#forward()</td><td><code>a b c|g h i</code></td><td><code>a b c <em>D E F</em>|g h i</code></td></tr> | |
385 | - * <tr><td>Direction#backward()</td><td><code>a b c|g h i</code></td><td><code>a b c|<em>D E F</em> g h i</code></td></tr> | |
386 | - * <tr><td>Any</td><td><code>a b c g|h i</code></td><td><code>a b c <em>D E F</em> g|h i</code></td></tr> | |
382 | + * <tr><th>@a gravity</th><th>Before</th><th>After</th></tr> | |
383 | + * <tr><td>Any</td><td><code>a b|c g h i</code></td><td><code>a b|c D E F g h i</code></td></tr> | |
384 | + * <tr><td>@c Direction#forward()</td><td><code>a b c|g h i</code></td><td><code>a b c D E F|g h i</code></td></tr> | |
385 | + * <tr><td>@c Direction#backward()</td><td><code>a b c|g h i</code></td><td><code>a b c|D E F< g h i</code></td></tr> | |
386 | + * <tr><td>Any</td><td><code>a b c g|h i</code></td><td><code>a b c D E F g|h i</code></td></tr> | |
387 | 387 | * </table> |
388 | 388 | * |
389 | 389 | * <h3>Deletion</h3> |
390 | 390 | * When "DEF" is erased from "abcDEFghi" ('|' is the position to update): |
391 | 391 | * <table> |
392 | - * <tr><th>Gravity</th><th>Before</th><th>After</th></tr> | |
393 | - * <tr><td>Any</td><td><code>a b|c <em>D E F</em> g h i</code></td><td><code>a b|c g h i</code></td></tr> | |
394 | - * <tr><td>Any</td><td><code>a b c|<em>D E F</em> g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
395 | - * <tr><td>Any</td><td><code>a b c <em>D</em>|<em>E F</em> g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
396 | - * <tr><td>Any</td><td><code>a b c <em>D E F</em>|g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
397 | - * <tr><td>Any</td><td><code>a b c <em>D E F</em> g|h i</code></td><td><code>a b c g|h i</code></td></tr> | |
392 | + * <tr><th>Case</th><th>@a gravity</th><th>Before</th><th>After</th></tr> | |
393 | + * <tr><td>(D-1a)</td><td>Any</td><td><code>a b|c D E F g h i</code></td><td><code>a b|c g h i</code></td></tr> | |
394 | + * <tr><td>(D-1b)</td><td>Any</td><td><code>a b c|D E F g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
395 | + * <tr><td>(D-2)</td><td>Any</td><td><code>a b c D|E F g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
396 | + * <tr><td>(D-3a)</td><td>Any</td><td><code>a b c D E F|g h i</code></td><td><code>a b c|g h i</code></td></tr> | |
397 | + * <tr><td>(D-3b)</td><td>Any</td><td><code>a b c D E F g|h i</code></td><td><code>a b c g|h i</code></td></tr> | |
398 | 398 | * </table> |
399 | 399 | * |
400 | 400 | * @param position The original position |
@@ -404,6 +404,7 @@ | ||
404 | 404 | * move to the start of the inserted text (no movement occur). Otherwise, move to the end of |
405 | 405 | * the inserted text |
406 | 406 | * @return The result position |
407 | + * @see viewer#locations#updateTextHit | |
407 | 408 | */ |
408 | 409 | Position updatePosition(const Position& position, const DocumentChange& change, Direction gravity) BOOST_NOEXCEPT { |
409 | 410 | Position newPosition(position); |