function character_to_string_test ( )

%*****************************************************************************80
%
%% character_to_string_test demonstrates how to convert strings and character vectors.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 October 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'character_to_string_test\n' );
  fprintf ( 1, '  convertCharsToStrings() and convertStringsToChars()"\n' );
  fprintf ( 1, '  convert between character vector data and string data.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  cvec is a character vector, and s is a string:\n' );
  fprintf ( 1, '\n' );

  cvec = 'This is text.'
  s = "This is also text."

  fprintf ( 1, '\n' );
  fprintf ( 1, '  After conversion, we have:\n' );
  fprintf ( 1, '\n' );

  s_to_cvec = convertStringsToChars ( s )
  cvec_to_s = convertCharsToStrings ( cvec )
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'character_to_string_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

