projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update shader of image-visual after OnScene for native image
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit-internal
/
utc-Dali-Text-Segmentation.cpp
diff --git
a/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Segmentation.cpp
b/automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Segmentation.cpp
index
5366164
..
cfbf325
100644
(file)
--- a/
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Segmentation.cpp
+++ b/
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Segmentation.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-56,9
+56,10
@@
bool LineBreakInfoTest( const BreakInfoData& data )
Vector<Character> utf32;
utf32.Resize( data.text.size() );
Vector<Character> utf32;
utf32.Resize( data.text.size() );
- const uint32_t numberOfCharacters = Utf8ToUtf32( reinterpret_cast<const uint8_t* const>( data.text.c_str() ),
- data.text.size(),
- &utf32[0u] );
+ const uint32_t numberOfCharacters = ( data.text.size() == 0 ) ? 0 :
+ Utf8ToUtf32( reinterpret_cast<const uint8_t* const>( data.text.c_str() ),
+ data.text.size(),
+ &utf32[0u] );
utf32.Resize( numberOfCharacters );
utf32.Resize( numberOfCharacters );
@@
-113,9
+114,10
@@
bool WordBreakInfoTest( const BreakInfoData& data )
Vector<Character> utf32;
utf32.Resize( data.text.size() );
Vector<Character> utf32;
utf32.Resize( data.text.size() );
- const uint32_t numberOfCharacters = Utf8ToUtf32( reinterpret_cast<const uint8_t* const>( data.text.c_str() ),
- data.text.size(),
- &utf32[0u] );
+ const uint32_t numberOfCharacters = ( data.text.size() == 0 ) ? 0 :
+ Utf8ToUtf32( reinterpret_cast<const uint8_t* const>( data.text.c_str() ),
+ data.text.size(),
+ &utf32[0u] );
utf32.Resize( numberOfCharacters );
utf32.Resize( numberOfCharacters );