Refactor truncation logic into a _truncate helper function.
Refactor truncation logic into a _truncate helper function.

jbradberry/dxr,jay-z007/dxr,pelmers/dxr,jbradberry/dxr,KiemVM/Mozilla--dxr,kleintom/dxr,pelmers/dxr,jay-z007/dxr,pelmers/dxr,KiemVM/Mozilla--dxr,bozzmob/dxr,pelmers/dxr,jbradberry/dxr,pombredanne/dxr,gartung/dxr,gartung/dxr,srenatus/dxr,jbradberry/dxr,jay-z007/dxr,KiemVM/Mozilla--dxr,bozzmob/dxr,pombredanne/dxr,pelmers/dxr,nrc/dxr,jay-z007/dxr,erikrose/dxr,pombredanne/dxr,nrc/dxr,gartung/dxr,kleintom/dxr,bozzmob/dxr,kleintom/dxr,bozzmob/dxr,srenatus/dxr,nrc/dxr,jbradberry/dxr,gartung/dxr,pombredanne/dxr,KiemVM/Mozilla--dxr,kleintom/dxr,gartung/dxr,pombredanne/dxr,gartung/dxr,kleintom/dxr,srenatus/dxr,jay-z007/dxr,jbradberry/dxr,pelmers/dxr,srenatus/dxr,erikrose/dxr,srenatus/dxr,kleintom/dxr,nrc/dxr,bozzmob/dxr,kleintom/dxr,KiemVM/Mozilla--dxr,pombredanne/dxr,srenatus/dxr,jay-z007/dxr,jay-z007/dxr,erikrose/dxr,erikrose/dxr,bozzmob/dxr,gartung/dxr,nrc/dxr,pelmers/dxr,nrc/dxr,jbradberry/dxr,pombredanne/dxr,erikrose/dxr,bozzmob/dxr,KiemVM/Mozilla--dxr