Back to index

texmacs  1.0.7.15
Functions
edit_text.cpp File Reference
#include "edit_text.hpp"
#include "file.hpp"
#include "analyze.hpp"
#include "scheme.hpp"

Go to the source code of this file.

Functions

static string get_unit (tree t)
static string get_quantity (tree t)

Function Documentation

static string get_quantity ( tree  t) [static]

Definition at line 263 of file edit_text.cpp.

                      {
  int i;
  string s= as_string (t);
  for (i=0; i<N(s); i++)
    if ((s[i]>='a') && (s[i]<='z')) break;
  return s (0, i);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static string get_unit ( tree  t) [static]

Definition at line 254 of file edit_text.cpp.

                  {
  int i;
  string s= as_string (t);
  for (i=0; i<N(s); i++)
    if ((s[i]>='a') && (s[i]<='z')) break;
  return s (i, N(s));
}

Here is the call graph for this function:

Here is the caller graph for this function: