Commit MetaInfo

Revisionb8b2b094390306c7ba4baa1bf7732e08599de4c2 (tree)
Time2017-08-19 23:47:29
Author <exeal@user...>

Log Message

.

Change Summary

Incremental Difference

diff -r 5286f17bd78c -r b8b2b0943903 ascension/src/kernel/locations.cpp
--- a/ascension/src/kernel/locations.cpp Fri Aug 18 14:25:32 2017 +0900
+++ b/ascension/src/kernel/locations.cpp Sat Aug 19 23:47:29 2017 +0900
@@ -379,22 +379,22 @@
379379 * <h3>Insertion</h3>
380380 * When "DEF" is inserted between "abc" and "ghi" ('|' is the position to update):
381381 * <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>
387387 * </table>
388388 *
389389 * <h3>Deletion</h3>
390390 * When "DEF" is erased from "abcDEFghi" ('|' is the position to update):
391391 * <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>
398398 * </table>
399399 *
400400 * @param position The original position
@@ -404,6 +404,7 @@
404404 * move to the start of the inserted text (no movement occur). Otherwise, move to the end of
405405 * the inserted text
406406 * @return The result position
407+ * @see viewer#locations#updateTextHit
407408 */
408409 Position updatePosition(const Position& position, const DocumentChange& change, Direction gravity) BOOST_NOEXCEPT {
409410 Position newPosition(position);
Show on old repository browser